diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1/2.0.0/README.md
index a3a6c90f770..3be40af624a 100644
--- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md
+++ b/clients/google-api-services-aiplatform/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
{@link ResponsesRequest#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody} * @since 1.13 */ - protected Responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) { + protected ResponsesRequest(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class); this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { @@ -121560,58 +121560,58 @@ protected Responses(java.lang.String endpoint, com.google.api.services.aiplatfor } @Override - public Responses set$Xgafv(java.lang.String $Xgafv) { - return (Responses) super.set$Xgafv($Xgafv); + public ResponsesRequest set$Xgafv(java.lang.String $Xgafv) { + return (ResponsesRequest) super.set$Xgafv($Xgafv); } @Override - public Responses setAccessToken(java.lang.String accessToken) { - return (Responses) super.setAccessToken(accessToken); + public ResponsesRequest setAccessToken(java.lang.String accessToken) { + return (ResponsesRequest) super.setAccessToken(accessToken); } @Override - public Responses setAlt(java.lang.String alt) { - return (Responses) super.setAlt(alt); + public ResponsesRequest setAlt(java.lang.String alt) { + return (ResponsesRequest) super.setAlt(alt); } @Override - public Responses setCallback(java.lang.String callback) { - return (Responses) super.setCallback(callback); + public ResponsesRequest setCallback(java.lang.String callback) { + return (ResponsesRequest) super.setCallback(callback); } @Override - public Responses setFields(java.lang.String fields) { - return (Responses) super.setFields(fields); + public ResponsesRequest setFields(java.lang.String fields) { + return (ResponsesRequest) super.setFields(fields); } @Override - public Responses setKey(java.lang.String key) { - return (Responses) super.setKey(key); + public ResponsesRequest setKey(java.lang.String key) { + return (ResponsesRequest) super.setKey(key); } @Override - public Responses setOauthToken(java.lang.String oauthToken) { - return (Responses) super.setOauthToken(oauthToken); + public ResponsesRequest setOauthToken(java.lang.String oauthToken) { + return (ResponsesRequest) super.setOauthToken(oauthToken); } @Override - public Responses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Responses) super.setPrettyPrint(prettyPrint); + public ResponsesRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResponsesRequest) super.setPrettyPrint(prettyPrint); } @Override - public Responses setQuotaUser(java.lang.String quotaUser) { - return (Responses) super.setQuotaUser(quotaUser); + public ResponsesRequest setQuotaUser(java.lang.String quotaUser) { + return (ResponsesRequest) super.setQuotaUser(quotaUser); } @Override - public Responses setUploadType(java.lang.String uploadType) { - return (Responses) super.setUploadType(uploadType); + public ResponsesRequest setUploadType(java.lang.String uploadType) { + return (ResponsesRequest) super.setUploadType(uploadType); } @Override - public Responses setUploadProtocol(java.lang.String uploadProtocol) { - return (Responses) super.setUploadProtocol(uploadProtocol); + public ResponsesRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (ResponsesRequest) super.setUploadProtocol(uploadProtocol); } /** @@ -121632,7 +121632,7 @@ public java.lang.String getEndpoint() { * Required. The name of the Endpoint requested to serve the prediction. Format: * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Responses setEndpoint(java.lang.String endpoint) { + public ResponsesRequest setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), "Parameter endpoint must conform to the pattern " + @@ -121653,17 +121653,198 @@ public java.lang.String getDeployedModelId() { } /** ID of the DeployedModel that serves the invoke request. */ - public Responses setDeployedModelId(java.lang.String deployedModelId) { + public ResponsesRequest setDeployedModelId(java.lang.String deployedModelId) { this.deployedModelId = deployedModelId; return this; } @Override - public Responses set(String parameterName, Object value) { - return (Responses) super.set(parameterName, value); + public ResponsesRequest set(String parameterName, Object value) { + return (ResponsesRequest) super.set(parameterName, value); } } + /** + * An accessor for creating requests from the Responses collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Responses.List request = aiplatform.responses().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Responses responses() {
+ return new Responses();
+ }
+
+ /**
+ * The "responses" collection of methods.
+ */
+ public class Responses {
+
+ /**
+ * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method,
+ * invoke_route_prefix must be set to allow the paths that will be specified in the request.
+ *
+ * Create a request for the method "responses.compact".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Compact#execute()} method to invoke the remote operation.
+ *
+ * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody}
+ * @return the request
+ */
+ public Compact compact(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) throws java.io.IOException {
+ Compact result = new Compact(endpoint, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Compact extends AiplatformRequest{@link + * Compact#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody} + * @since 1.13 + */ + protected Compact(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + } + } + + @Override + public Compact set$Xgafv(java.lang.String $Xgafv) { + return (Compact) super.set$Xgafv($Xgafv); + } + + @Override + public Compact setAccessToken(java.lang.String accessToken) { + return (Compact) super.setAccessToken(accessToken); + } + + @Override + public Compact setAlt(java.lang.String alt) { + return (Compact) super.setAlt(alt); + } + + @Override + public Compact setCallback(java.lang.String callback) { + return (Compact) super.setCallback(callback); + } + + @Override + public Compact setFields(java.lang.String fields) { + return (Compact) super.setFields(fields); + } + + @Override + public Compact setKey(java.lang.String key) { + return (Compact) super.setKey(key); + } + + @Override + public Compact setOauthToken(java.lang.String oauthToken) { + return (Compact) super.setOauthToken(oauthToken); + } + + @Override + public Compact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Compact) super.setPrettyPrint(prettyPrint); + } + + @Override + public Compact setQuotaUser(java.lang.String quotaUser) { + return (Compact) super.setQuotaUser(quotaUser); + } + + @Override + public Compact setUploadType(java.lang.String uploadType) { + return (Compact) super.setUploadType(uploadType); + } + + @Override + public Compact setUploadProtocol(java.lang.String uploadProtocol) { + return (Compact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Compact setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + } + this.endpoint = endpoint; + return this; + } + + /** ID of the DeployedModel that serves the invoke request. */ + @com.google.api.client.util.Key + private java.lang.String deployedModelId; + + /** ID of the DeployedModel that serves the invoke request. + */ + public java.lang.String getDeployedModelId() { + return deployedModelId; + } + + /** ID of the DeployedModel that serves the invoke request. */ + public Compact setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @Override + public Compact set(String parameterName, Object value) { + return (Compact) super.set(parameterName, value); + } + } + + } } } /** @@ -141827,24 +142008,24 @@ public Deprovision set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Skills collection. + * An accessor for creating requests from the ServingProfiles collection. * *The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Skills.List request = aiplatform.skills().list(parameters ...)}
+ * {@code Aiplatform.ServingProfiles.List request = aiplatform.servingProfiles().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Skills skills() {
- return new Skills();
+ public ServingProfiles servingProfiles() {
+ return new ServingProfiles();
}
/**
- * The "skills" collection of methods.
+ * The "servingProfiles" collection of methods.
*/
- public class Skills {
+ public class ServingProfiles {
/**
* An accessor for creating requests from the Operations collection.
@@ -141894,7 +142075,7 @@ public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.SpecialistPools.List request = aiplatform.specialistPools().list(parameters ...)}
+ * {@code Aiplatform.Skills.List request = aiplatform.skills().list(parameters ...)}
*
*
* @return the resource collection
*/
- public SpecialistPools specialistPools() {
- return new SpecialistPools();
+ public Skills skills() {
+ return new Skills();
}
/**
- * The "specialistPools" collection of methods.
+ * The "skills" collection of methods.
*/
- public class SpecialistPools {
+ public class Skills {
/**
- * Creates a SpecialistPool.
- *
- * Create a request for the method "specialistPools.create".
+ * An accessor for creating requests from the Operations collection.
*
- * This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
*
- * @param parent Required. The parent Project name for the new SpecialistPool. The form is
- * `projects/{project}/locations/{location}`.
- * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool}
- * @return the request
+ * @return the resource collection
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param parent Required. The parent Project name for the new SpecialistPool. The form is - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * Required. The parent Project name for the new SpecialistPool. The form is - * `projects/{project}/locations/{location}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent Project name for the new SpecialistPool. The form is - `projects/{project}/locations/{location}`. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * Required. The parent Project name for the new SpecialistPool. The form is - * `projects/{project}/locations/{location}`. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a SpecialistPool as well as all Specialists in the pool. - * - * Create a request for the method "specialistPools.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the SpecialistPool to delete. Format: - * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the SpecialistPool to delete. Format: - * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the SpecialistPools collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.SpecialistPools.List request = aiplatform.specialistPools().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public SpecialistPools specialistPools() {
+ return new SpecialistPools();
+ }
+
+ /**
+ * The "specialistPools" collection of methods.
+ */
+ public class SpecialistPools {
+
+ /**
+ * Creates a SpecialistPool.
+ *
+ * Create a request for the method "specialistPools.create".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent Project name for the new SpecialistPool. The form is
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent Project name for the new SpecialistPool. The form is + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SpecialistPool content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent Project name for the new SpecialistPool. The form is + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent Project name for the new SpecialistPool. The form is + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent Project name for the new SpecialistPool. The form is + * `projects/{project}/locations/{location}`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a SpecialistPool as well as all Specialists in the pool. + * + * Create a request for the method "specialistPools.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the SpecialistPool to delete. Format: + * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } @Override public Delete setCallback(java.lang.String callback) { @@ -170516,16 +171543,306 @@ public class Pause extends AiplatformRequest{@link + * Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the sandbox environment to resume. Format: `projects/{project}/locati + * ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environmen + * t}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest} + * @since 1.13 + */ + protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the sandbox environment to resume. Format: `projects/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbo + * x_environment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the sandbox environment to resume. Format: `projects/{project}/locat + ions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the sandbox environment to resume. Format: `projects/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbo + * x_environment}` + */ + public Resume setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + /** + * Snapshots the specific SandboxEnvironment resource and creates a SandboxEnvironmentSnapshot + * resource. + * + * Create a request for the method "sandboxEnvironments.snapshot". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Snapshot#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environm + * ent}`. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot} + * @return the request + */ + public Snapshot snapshot(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot content) throws java.io.IOException { + Snapshot result = new Snapshot(name, content); + initialize(result); + return result; + } + + public class Snapshot extends AiplatformRequest{@link + * Snapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The resource name of the sandbox environment to pause. Format: `projects/{project}/locatio - * ns/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment - * }` - * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1PauseSandboxEnvironmentRequest} + * @param name Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environm + * ent}`. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot} * @since 1.13 */ - protected Pause(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1PauseSandboxEnvironmentRequest content) { + protected Snapshot(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { @@ -170536,81 +171853,81 @@ protected Pause(java.lang.String name, com.google.api.services.aiplatform.v1.mod } @Override - public Pause set$Xgafv(java.lang.String $Xgafv) { - return (Pause) super.set$Xgafv($Xgafv); + public Snapshot set$Xgafv(java.lang.String $Xgafv) { + return (Snapshot) super.set$Xgafv($Xgafv); } @Override - public Pause setAccessToken(java.lang.String accessToken) { - return (Pause) super.setAccessToken(accessToken); + public Snapshot setAccessToken(java.lang.String accessToken) { + return (Snapshot) super.setAccessToken(accessToken); } @Override - public Pause setAlt(java.lang.String alt) { - return (Pause) super.setAlt(alt); + public Snapshot setAlt(java.lang.String alt) { + return (Snapshot) super.setAlt(alt); } @Override - public Pause setCallback(java.lang.String callback) { - return (Pause) super.setCallback(callback); + public Snapshot setCallback(java.lang.String callback) { + return (Snapshot) super.setCallback(callback); } @Override - public Pause setFields(java.lang.String fields) { - return (Pause) super.setFields(fields); + public Snapshot setFields(java.lang.String fields) { + return (Snapshot) super.setFields(fields); } @Override - public Pause setKey(java.lang.String key) { - return (Pause) super.setKey(key); + public Snapshot setKey(java.lang.String key) { + return (Snapshot) super.setKey(key); } @Override - public Pause setOauthToken(java.lang.String oauthToken) { - return (Pause) super.setOauthToken(oauthToken); + public Snapshot setOauthToken(java.lang.String oauthToken) { + return (Snapshot) super.setOauthToken(oauthToken); } @Override - public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Pause) super.setPrettyPrint(prettyPrint); + public Snapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Snapshot) super.setPrettyPrint(prettyPrint); } @Override - public Pause setQuotaUser(java.lang.String quotaUser) { - return (Pause) super.setQuotaUser(quotaUser); + public Snapshot setQuotaUser(java.lang.String quotaUser) { + return (Snapshot) super.setQuotaUser(quotaUser); } @Override - public Pause setUploadType(java.lang.String uploadType) { - return (Pause) super.setUploadType(uploadType); + public Snapshot setUploadType(java.lang.String uploadType) { + return (Snapshot) super.setUploadType(uploadType); } @Override - public Pause setUploadProtocol(java.lang.String uploadProtocol) { - return (Pause) super.setUploadProtocol(uploadProtocol); + public Snapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (Snapshot) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the sandbox environment to pause. Format: `projects/{proje - * ct}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox - * _environment}` + * Required. The resource name of the sandbox environment to snapshot. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sand + * box_environment}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the sandbox environment to pause. Format: `projects/{project}/locati - ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment}` + /** Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loc + ations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment}`. */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the sandbox environment to pause. Format: `projects/{proje - * ct}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox - * _environment}` + * Required. The resource name of the sandbox environment to snapshot. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sand + * box_environment}`. */ - public Pause setName(java.lang.String name) { + public Snapshot setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -170621,300 +171938,633 @@ public Pause setName(java.lang.String name) { } @Override - public Pause set(String parameterName, Object value) { - return (Pause) super.set(parameterName, value); + public Snapshot set(String parameterName, Object value) { + return (Snapshot) super.set(parameterName, value); } } + /** - * Resumes the specific SandboxEnvironment. - * - * Create a request for the method "sandboxEnvironments.resume". + * An accessor for creating requests from the Operations collection. * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
*
- * @param name Required. The resource name of the sandbox environment to resume. Format: `projects/{project}/locati
- * ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environmen
- * t}`
- * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest}
- * @return the request
+ * @return the resource collection
*/
- public Resume resume(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest content) throws java.io.IOException {
- Resume result = new Resume(name, content);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class Resume extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Resumes the specific SandboxEnvironment. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "sandboxEnvironments.resume". + * Create a request for the method "operations.delete". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Resume#execute()} method to invoke the remote operation. - *{@link - * Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the sandbox environment to resume. Format: `projects/{project}/locati - * ons/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environmen - * t}` - * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest} - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ResumeSandboxEnvironmentRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Resume set$Xgafv(java.lang.String $Xgafv) { - return (Resume) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + } - @Override - public Resume setFields(java.lang.String fields) { - return (Resume) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Resume setKey(java.lang.String key) { - return (Resume) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Resume setOauthToken(java.lang.String oauthToken) { - return (Resume) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resume) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Resume setQuotaUser(java.lang.String quotaUser) { - return (Resume) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Resume setUploadType(java.lang.String uploadType) { - return (Resume) super.setUploadType(uploadType); + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Resume setUploadProtocol(java.lang.String uploadProtocol) { - return (Resume) super.setUploadProtocol(uploadProtocol); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the sandbox environment to resume. Format: `projects/{proj - * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbo - * x_environment}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the sandbox environment to resume. Format: `projects/{project}/locat - ions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the sandbox environment to resume. Format: `projects/{proj - * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbo - * x_environment}` - */ - public Resume setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Resume set(String parameterName, Object value) { - return (Resume) super.set(parameterName, value); - } - } - /** - * Snapshots the specific SandboxEnvironment resource and creates a SandboxEnvironmentSnapshot - * resource. - * - * Create a request for the method "sandboxEnvironments.snapshot". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Snapshot#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loca - * tions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environm - * ent}`. - * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot} - * @return the request - */ - public Snapshot snapshot(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot content) throws java.io.IOException { - Snapshot result = new Snapshot(name, content); - initialize(result); - return result; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class Snapshot extends AiplatformRequest{@link - * Snapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loca - * tions/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environm - * ent}`. - * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot} - * @since 1.13 + * @param name The name of the operation resource to wait on. + * @return the request */ - protected Snapshot(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1SandboxEnvironmentSnapshot content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); - } + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Snapshot set$Xgafv(java.lang.String $Xgafv) { - return (Snapshot) super.set$Xgafv($Xgafv); - } + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + } - @Override - public Snapshot setFields(java.lang.String fields) { - return (Snapshot) super.setFields(fields); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Snapshot setKey(java.lang.String key) { - return (Snapshot) super.setKey(key); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Snapshot setOauthToken(java.lang.String oauthToken) { - return (Snapshot) super.setOauthToken(oauthToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Snapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Snapshot) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Snapshot setQuotaUser(java.lang.String quotaUser) { - return (Snapshot) super.setQuotaUser(quotaUser); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Snapshot setUploadType(java.lang.String uploadType) { - return (Snapshot) super.setUploadType(uploadType); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Snapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (Snapshot) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the sandbox environment to snapshot. Format: `projects/{pr - * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sand - * box_environment}`. - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the sandbox environment to snapshot. Format: `projects/{project}/loc - ations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_environment}`. - */ - public java.lang.String getName() { - return name; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the sandbox environment to snapshot. Format: `projects/{pr - * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sand - * box_environment}`. - */ - public Snapshot setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Snapshot set(String parameterName, Object value) { - return (Snapshot) super.set(parameterName, value); + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } + } + } + /** + * An accessor for creating requests from the Sessions collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Sessions.List request = aiplatform.sessions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Sessions sessions() {
+ return new Sessions();
+ }
+
+ /**
+ * The "sessions" collection of methods.
+ */
+ public class Sessions {
/**
* An accessor for creating requests from the Operations collection.
@@ -170964,7 +172614,7 @@ public class Cancel extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + "^reasoningEngines/[^/]+/sessions/[^/]+$"); } } @@ -171270,84 +173060,167 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + "^reasoningEngines/[^/]+/sessions/[^/]+$"); } this.name = name; return this; } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** @@ -171378,7 +173251,7 @@ public class Wait extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Schedules.List request = aiplatform.schedules().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Schedules schedules() {
+ return new Schedules();
+ }
+
+ /**
+ * The "schedules" collection of methods.
+ */
+ public class Schedules {
+
/**
- * An accessor for creating requests from the Sessions collection.
+ * An accessor for creating requests from the Operations collection.
*
* The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Sessions.List request = aiplatform.sessions().list(parameters ...)}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Sessions sessions() {
- return new Sessions();
+ public Operations operations() {
+ return new Operations();
}
/**
- * The "sessions" collection of methods.
+ * The "operations" collection of methods.
*/
- public class Sessions {
+ public class Operations {
/**
- * An accessor for creating requests from the Operations collection.
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
*
- * The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "operations.cancel".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation resource to be cancelled. - * @return the request + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); + } } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation resource to be deleted. - * @return the request + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); + } } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation resource. - * @return the request + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); + } } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation's parent resource. - * @return the request + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+$"); + } } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+$"); - } - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can + * only be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result + * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation resource to wait on. - * @return the request + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); } + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; + /** The name of the operation resource to wait on. */ + public Wait setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^schedules/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at most - * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also - * specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at most - * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also - * specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at most + * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also + * specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } + } } /** - * An accessor for creating requests from the Schedules collection. + * An accessor for creating requests from the SemanticGovernancePolicies collection. * *The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Schedules.List request = aiplatform.schedules().list(parameters ...)}
+ * {@code Aiplatform.SemanticGovernancePolicies.List request = aiplatform.semanticGovernancePolicies().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Schedules schedules() {
- return new Schedules();
+ public SemanticGovernancePolicies semanticGovernancePolicies() {
+ return new SemanticGovernancePolicies();
}
/**
- * The "schedules" collection of methods.
+ * The "semanticGovernancePolicies" collection of methods.
*/
- public class Schedules {
+ public class SemanticGovernancePolicies {
/**
* An accessor for creating requests from the Operations collection.
@@ -172435,7 +174309,7 @@ public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.SemanticGovernancePolicies.List request = aiplatform.semanticGovernancePolicies().list(parameters ...)}
+ * {@code Aiplatform.ServingProfiles.List request = aiplatform.servingProfiles().list(parameters ...)}
*
*
* @return the resource collection
*/
- public SemanticGovernancePolicies semanticGovernancePolicies() {
- return new SemanticGovernancePolicies();
+ public ServingProfiles servingProfiles() {
+ return new ServingProfiles();
}
/**
- * The "semanticGovernancePolicies" collection of methods.
+ * The "servingProfiles" collection of methods.
*/
- public class SemanticGovernancePolicies {
+ public class ServingProfiles {
/**
* An accessor for creating requests from the Operations collection.
@@ -173282,7 +175156,7 @@ public class Cancel extends AiplatformRequestThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1GoogleMapsPlaces extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1GoogleMapsPlaces set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1GoogleMapsPlaces) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1GoogleMapsPlaces clone() { + return (GoogleCloudAiplatformV1GoogleMapsPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsRouting.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsRouting.java new file mode 100644 index 00000000000..2d030ec523c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsRouting.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1GoogleMapsRouting extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1GoogleMapsRouting set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1GoogleMapsRouting) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1GoogleMapsRouting clone() { + return (GoogleCloudAiplatformV1GoogleMapsRouting) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.java index de6a5419896..66af3625654 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.java @@ -50,6 +50,13 @@ public final class GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentS @com.google.api.client.util.Key private GoogleCloudAiplatformV1PersistentDiskSpec persistentDiskSpec; + /** + * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig shieldedInstanceConfig; + /** * The specification of a single machine for the execution job. * @return value or {@code null} for none @@ -101,6 +108,23 @@ public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec setPersi return this; } + /** + * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig; + } + + /** + * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM. + * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec setShieldedInstanceConfig(GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig shieldedInstanceConfig) { + this.shieldedInstanceConfig = shieldedInstanceConfig; + return this; + } + @Override public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec set(String fieldName, Object value) { return (GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java new file mode 100644 index 00000000000..823d3cd5b92 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java @@ -0,0 +1,116 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * A set of Shielded VM options for the execution VM. Mirrors + * `google.cloud.notebooks.v2.ShieldedInstanceConfig`. See + * https://cloud.google.com/compute/docs/instances/modifying-shielded-vm. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the VM instance has integrity monitoring enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIntegrityMonitoring; + + /** + * Optional. Whether the VM instance has Secure Boot enabled. Disabled by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableSecureBoot; + + /** + * Optional. Whether the VM instance has vTPM enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableVtpm; + + /** + * Optional. Whether the VM instance has integrity monitoring enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring; + } + + /** + * Optional. Whether the VM instance has integrity monitoring enabled. + * @param enableIntegrityMonitoring enableIntegrityMonitoring or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig setEnableIntegrityMonitoring(java.lang.Boolean enableIntegrityMonitoring) { + this.enableIntegrityMonitoring = enableIntegrityMonitoring; + return this; + } + + /** + * Optional. Whether the VM instance has Secure Boot enabled. Disabled by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableSecureBoot() { + return enableSecureBoot; + } + + /** + * Optional. Whether the VM instance has Secure Boot enabled. Disabled by default. + * @param enableSecureBoot enableSecureBoot or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig setEnableSecureBoot(java.lang.Boolean enableSecureBoot) { + this.enableSecureBoot = enableSecureBoot; + return this; + } + + /** + * Optional. Whether the VM instance has vTPM enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableVtpm() { + return enableVtpm; + } + + /** + * Optional. Whether the VM instance has vTPM enabled. + * @param enableVtpm enableVtpm or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig setEnableVtpm(java.lang.Boolean enableVtpm) { + this.enableVtpm = enableVtpm; + return this; + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig clone() { + return (GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.java index a5058321537..a4007a6378e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime.java @@ -29,6 +29,57 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime extends com.google.api.client.json.GenericJson { + /** + * A user-provided container image. The notebook executes inside this container on a managed + * container-host (COS) VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage customContainerImage; + + /** + * A specific Compute Engine VM image to run the notebook on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage vmImage; + + /** + * A user-provided container image. The notebook executes inside this container on a managed + * container-host (COS) VM. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage getCustomContainerImage() { + return customContainerImage; + } + + /** + * A user-provided container image. The notebook executes inside this container on a managed + * container-host (COS) VM. + * @param customContainerImage customContainerImage or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime setCustomContainerImage(GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage customContainerImage) { + this.customContainerImage = customContainerImage; + return this; + } + + /** + * A specific Compute Engine VM image to run the notebook on. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage getVmImage() { + return vmImage; + } + + /** + * A specific Compute Engine VM image to run the notebook on. + * @param vmImage vmImage or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime setVmImage(GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage vmImage) { + this.vmImage = vmImage; + return this; + } + @Override public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime set(String fieldName, Object value) { return (GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage.java new file mode 100644 index 00000000000..82517a206fd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * The definition of a user-provided container image to run the notebook execution in. Mirrors + * `google.cloud.notebooks.v2.ContainerImage`. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage extends com.google.api.client.json.GenericJson { + + /** + * Required. The path to the container image repository. For example: + * `gcr.io/{project_id}/{image_name}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String repository; + + /** + * Optional. The tag of the container image. If unset, defaults to `latest`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Required. The path to the container image repository. For example: + * `gcr.io/{project_id}/{image_name}`. + * @return value or {@code null} for none + */ + public java.lang.String getRepository() { + return repository; + } + + /** + * Required. The path to the container image repository. For example: + * `gcr.io/{project_id}/{image_name}`. + * @param repository repository or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage setRepository(java.lang.String repository) { + this.repository = repository; + return this; + } + + /** + * Optional. The tag of the container image. If unset, defaults to `latest`. + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Optional. The tag of the container image. If unset, defaults to `latest`. + * @param tag tag or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage clone() { + return (GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeContainerImage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage.java new file mode 100644 index 00000000000..b10aedfc737 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * The definition of a Compute Engine VM image to run the notebook execution on. Mirrors + * `google.cloud.notebooks.v2.VmImage`. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage extends com.google.api.client.json.GenericJson { + + /** + * Use this VM image family to find the image; the newest image in this family is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String family; + + /** + * Use this VM image name to find the image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of the Google Cloud project that this VM image belongs to. Format: + * `{project_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Use this VM image family to find the image; the newest image in this family is used. + * @return value or {@code null} for none + */ + public java.lang.String getFamily() { + return family; + } + + /** + * Use this VM image family to find the image; the newest image in this family is used. + * @param family family or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage setFamily(java.lang.String family) { + this.family = family; + return this; + } + + /** + * Use this VM image name to find the image. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Use this VM image name to find the image. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The name of the Google Cloud project that this VM image belongs to. Format: + * `{project_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * Required. The name of the Google Cloud project that this VM image belongs to. Format: + * `{project_id}`. + * @param project project or {@code null} for none + */ + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage clone() { + return (GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntimeVmImage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java index bb6bd658878..e04da86b62f 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java @@ -30,7 +30,7 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate extends com.google.api.client.json.GenericJson { /** - * Filter on the duration of a trace. + * Filter on the duration of a trace (in seconds). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTrace private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate totalTokenUsage; /** - * Filter on the duration of a trace. + * Filter on the duration of a trace (in seconds). * @return value or {@code null} for none */ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate getDuration() { @@ -52,7 +52,7 @@ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate } /** - * Filter on the duration of a trace. + * Filter on the duration of a trace (in seconds). * @param duration duration or {@code null} for none */ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate setDuration(GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate duration) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml index 825ca332dcc..9b9a9cd1c75 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@{@link ResponsesRequest#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @since 1.13 */ - protected Responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + protected ResponsesRequest(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { @@ -156071,58 +156071,58 @@ protected Responses(java.lang.String endpoint, com.google.api.services.aiplatfor } @Override - public Responses set$Xgafv(java.lang.String $Xgafv) { - return (Responses) super.set$Xgafv($Xgafv); + public ResponsesRequest set$Xgafv(java.lang.String $Xgafv) { + return (ResponsesRequest) super.set$Xgafv($Xgafv); } @Override - public Responses setAccessToken(java.lang.String accessToken) { - return (Responses) super.setAccessToken(accessToken); + public ResponsesRequest setAccessToken(java.lang.String accessToken) { + return (ResponsesRequest) super.setAccessToken(accessToken); } @Override - public Responses setAlt(java.lang.String alt) { - return (Responses) super.setAlt(alt); + public ResponsesRequest setAlt(java.lang.String alt) { + return (ResponsesRequest) super.setAlt(alt); } @Override - public Responses setCallback(java.lang.String callback) { - return (Responses) super.setCallback(callback); + public ResponsesRequest setCallback(java.lang.String callback) { + return (ResponsesRequest) super.setCallback(callback); } @Override - public Responses setFields(java.lang.String fields) { - return (Responses) super.setFields(fields); + public ResponsesRequest setFields(java.lang.String fields) { + return (ResponsesRequest) super.setFields(fields); } @Override - public Responses setKey(java.lang.String key) { - return (Responses) super.setKey(key); + public ResponsesRequest setKey(java.lang.String key) { + return (ResponsesRequest) super.setKey(key); } @Override - public Responses setOauthToken(java.lang.String oauthToken) { - return (Responses) super.setOauthToken(oauthToken); + public ResponsesRequest setOauthToken(java.lang.String oauthToken) { + return (ResponsesRequest) super.setOauthToken(oauthToken); } @Override - public Responses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Responses) super.setPrettyPrint(prettyPrint); + public ResponsesRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResponsesRequest) super.setPrettyPrint(prettyPrint); } @Override - public Responses setQuotaUser(java.lang.String quotaUser) { - return (Responses) super.setQuotaUser(quotaUser); + public ResponsesRequest setQuotaUser(java.lang.String quotaUser) { + return (ResponsesRequest) super.setQuotaUser(quotaUser); } @Override - public Responses setUploadType(java.lang.String uploadType) { - return (Responses) super.setUploadType(uploadType); + public ResponsesRequest setUploadType(java.lang.String uploadType) { + return (ResponsesRequest) super.setUploadType(uploadType); } @Override - public Responses setUploadProtocol(java.lang.String uploadProtocol) { - return (Responses) super.setUploadProtocol(uploadProtocol); + public ResponsesRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (ResponsesRequest) super.setUploadProtocol(uploadProtocol); } /** @@ -156143,7 +156143,7 @@ public java.lang.String getEndpoint() { * Required. The name of the Endpoint requested to serve the prediction. Format: * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Responses setEndpoint(java.lang.String endpoint) { + public ResponsesRequest setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), "Parameter endpoint must conform to the pattern " + @@ -156164,17 +156164,483 @@ public java.lang.String getDeployedModelId() { } /** ID of the DeployedModel that serves the invoke request. */ - public Responses setDeployedModelId(java.lang.String deployedModelId) { + public ResponsesRequest setDeployedModelId(java.lang.String deployedModelId) { this.deployedModelId = deployedModelId; return this; } @Override - public Responses set(String parameterName, Object value) { - return (Responses) super.set(parameterName, value); + public ResponsesRequest set(String parameterName, Object value) { + return (ResponsesRequest) super.set(parameterName, value); } } + /** + * An accessor for creating requests from the Responses collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Responses.List request = aiplatform.responses().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Responses responses() {
+ return new Responses();
+ }
+
+ /**
+ * The "responses" collection of methods.
+ */
+ public class Responses {
+
+ /**
+ * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method,
+ * invoke_route_prefix must be set to allow the paths that will be specified in the request.
+ *
+ * Create a request for the method "responses.compact".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Compact#execute()} method to invoke the remote operation.
+ *
+ * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody}
+ * @return the request
+ */
+ public Compact compact(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException {
+ Compact result = new Compact(endpoint, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Compact extends AiplatformRequest{@link + * Compact#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @since 1.13 + */ + protected Compact(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + } + } + + @Override + public Compact set$Xgafv(java.lang.String $Xgafv) { + return (Compact) super.set$Xgafv($Xgafv); + } + + @Override + public Compact setAccessToken(java.lang.String accessToken) { + return (Compact) super.setAccessToken(accessToken); + } + + @Override + public Compact setAlt(java.lang.String alt) { + return (Compact) super.setAlt(alt); + } + + @Override + public Compact setCallback(java.lang.String callback) { + return (Compact) super.setCallback(callback); + } + + @Override + public Compact setFields(java.lang.String fields) { + return (Compact) super.setFields(fields); + } + + @Override + public Compact setKey(java.lang.String key) { + return (Compact) super.setKey(key); + } + + @Override + public Compact setOauthToken(java.lang.String oauthToken) { + return (Compact) super.setOauthToken(oauthToken); + } + + @Override + public Compact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Compact) super.setPrettyPrint(prettyPrint); + } + + @Override + public Compact setQuotaUser(java.lang.String quotaUser) { + return (Compact) super.setQuotaUser(quotaUser); + } + + @Override + public Compact setUploadType(java.lang.String uploadType) { + return (Compact) super.setUploadType(uploadType); + } + + @Override + public Compact setUploadProtocol(java.lang.String uploadProtocol) { + return (Compact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Compact setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + } + this.endpoint = endpoint; + return this; + } + + /** ID of the DeployedModel that serves the invoke request. */ + @com.google.api.client.util.Key + private java.lang.String deployedModelId; + + /** ID of the DeployedModel that serves the invoke request. + */ + public java.lang.String getDeployedModelId() { + return deployedModelId; + } + + /** ID of the DeployedModel that serves the invoke request. */ + public Compact setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @Override + public Compact set(String parameterName, Object value) { + return (Compact) super.set(parameterName, value); + } + } + /** + * Deletes the response from the endpoint. + * + * Create a request for the method "responses.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Response resource to be deleted. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the response from the endpoint. + * + * Create a request for the method "responses.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Response resource. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } } } /** @@ -168345,7 +168811,8 @@ public class A2aTasks { * * @param name Required. The resource name of the A2aTask to append events to. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/a2aTasks/{a2a - * _task}` + * _task}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}/a2aTasks/{a2a_task}` * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest} * @return the request */ @@ -168375,7 +168842,8 @@ public class AppendEvents extends AiplatformRequestThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1TranscriptionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. A list of phrases to bias the ASR model towards. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1WordInfo extends com.google.api.client.json.GenericJson { + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endOffset; + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startOffset; + + /** + * The transcribed word. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getEndOffset() { + return endOffset; + } + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param endOffset endOffset or {@code null} for none + */ + public GenaiVertexV1beta1WordInfo setEndOffset(String endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @param speaker speaker or {@code null} for none + */ + public GenaiVertexV1beta1WordInfo setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param startOffset startOffset or {@code null} for none + */ + public GenaiVertexV1beta1WordInfo setStartOffset(String startOffset) { + this.startOffset = startOffset; + return this; + } + + /** + * The transcribed word. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * The transcribed word. + * @param text text or {@code null} for none + */ + public GenaiVertexV1beta1WordInfo setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiVertexV1beta1WordInfo set(String fieldName, Object value) { + return (GenaiVertexV1beta1WordInfo) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1WordInfo clone() { + return (GenaiVertexV1beta1WordInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aPart.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aPart.java new file mode 100644 index 00000000000..bc50dbb5dfe --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aPart.java @@ -0,0 +1,241 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * A single part of a message or artifact. A part carries exactly one kind of content. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aPart extends com.google.api.client.json.GenericJson { + + /** + * Optional. Structured data content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleCloudAiplatformV1beta1A2aPart encodeRaw(byte[] raw) { + this.raw = com.google.api.client.util.Base64.encodeBase64URLSafeString(raw); + return this; + } + + /** + * Optional. Textual content. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Textual content. + * @param text text or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Optional. A URL pointing to the content. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Optional. A URL pointing to the content. + * @param url url or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aPart set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aPart) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aPart clone() { + return (GoogleCloudAiplatformV1beta1A2aPart) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTask.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTask.java index 2528bae2fb2..b71de529826 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTask.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTask.java @@ -29,6 +29,20 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1A2aTask extends com.google.api.client.json.GenericJson { + /** + * Optional. Agent application which created the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** + * Output only. The artifacts produced by the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskArtifactChange extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the artifact parts should be appended to an existing artifact rather than + * replacing it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean append; + + /** + * Required. The artifact that was added or updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskArtifact artifact; + + /** + * Optional. Whether this is the last chunk of a streamed artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean lastChunk; + + /** + * Optional. Whether the artifact parts should be appended to an existing artifact rather than + * replacing it. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAppend() { + return append; + } + + /** + * Optional. Whether the artifact parts should be appended to an existing artifact rather than + * replacing it. + * @param append append or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange setAppend(java.lang.Boolean append) { + this.append = append; + return this; + } + + /** + * Required. The artifact that was added or updated. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact getArtifact() { + return artifact; + } + + /** + * Required. The artifact that was added or updated. + * @param artifact artifact or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange setArtifact(GoogleCloudAiplatformV1beta1A2aTaskArtifact artifact) { + this.artifact = artifact; + return this; + } + + /** + * Optional. Whether this is the last chunk of a streamed artifact. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLastChunk() { + return lastChunk; + } + + /** + * Optional. Whether this is the last chunk of a streamed artifact. + * @param lastChunk lastChunk or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange setLastChunk(java.lang.Boolean lastChunk) { + this.lastChunk = lastChunk; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskArtifactChange) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskArtifactChange) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEvent.java new file mode 100644 index 00000000000..f33f189371f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEvent.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * An event that records a single change applied to a task's state. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskEvent extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the event was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. The data describing the change carried by this event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskEventData eventData; + + /** + * Output only. The generation number of the task after this event is applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + + /** + * Optional. Additional context or parameters related to the event. Extensions can be used to + * strongly type metadata values for specific use cases. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskEventData extends com.google.api.client.json.GenericJson { + + /** + * Optional. A change to one of the task's artifacts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskArtifactChange artifactChange; + + /** + * Optional. A new message appended to the task history. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend historyAppend; + + /** + * Optional. A change to the task-level metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskMetadataChange metadataChange; + + /** + * Optional. An update to the task's state and status message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate statusUpdate; + + /** + * Optional. A change to one of the task's artifacts. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifactChange getArtifactChange() { + return artifactChange; + } + + /** + * Optional. A change to one of the task's artifacts. + * @param artifactChange artifactChange or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEventData setArtifactChange(GoogleCloudAiplatformV1beta1A2aTaskArtifactChange artifactChange) { + this.artifactChange = artifactChange; + return this; + } + + /** + * Optional. A new message appended to the task history. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend getHistoryAppend() { + return historyAppend; + } + + /** + * Optional. A new message appended to the task history. + * @param historyAppend historyAppend or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEventData setHistoryAppend(GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend historyAppend) { + this.historyAppend = historyAppend; + return this; + } + + /** + * Optional. A change to the task-level metadata. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMetadataChange getMetadataChange() { + return metadataChange; + } + + /** + * Optional. A change to the task-level metadata. + * @param metadataChange metadataChange or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEventData setMetadataChange(GoogleCloudAiplatformV1beta1A2aTaskMetadataChange metadataChange) { + this.metadataChange = metadataChange; + return this; + } + + /** + * Optional. An update to the task's state and status message. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate getStatusUpdate() { + return statusUpdate; + } + + /** + * Optional. An update to the task's state and status message. + * @param statusUpdate statusUpdate or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEventData setStatusUpdate(GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate statusUpdate) { + this.statusUpdate = statusUpdate; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskEventData set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskEventData) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskEventData clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskEventData) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend.java new file mode 100644 index 00000000000..e8612ff7de6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * An event payload that appends a new message to the task history. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend extends com.google.api.client.json.GenericJson { + + /** + * Required. The message to append to the task history. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskMessage message; + + /** + * Required. The message to append to the task history. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage getMessage() { + return message; + } + + /** + * Required. The message to append to the task history. + * @param message message or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend setMessage(GoogleCloudAiplatformV1beta1A2aTaskMessage message) { + this.message = message; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskHistoryAppend) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMessage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMessage.java new file mode 100644 index 00000000000..071d3019cca --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMessage.java @@ -0,0 +1,195 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Represents a single message in a conversation, compliant with the A2A specification. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskMessage extends com.google.api.client.json.GenericJson { + + /** + * Optional. A2A protocol extensions associated with the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskMetadataChange extends com.google.api.client.json.GenericJson { + + /** + * Required. The complete task metadata after the change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The status message associated with the state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskMessage message; + + /** + * Output only. The current state of the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The time at which the state was set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. The status message associated with the state. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage getMessage() { + return message; + } + + /** + * Output only. The status message associated with the state. + * @param message message or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatus setMessage(GoogleCloudAiplatformV1beta1A2aTaskMessage message) { + this.message = message; + return this; + } + + /** + * Output only. The current state of the task. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the task. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The time at which the state was set. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. The time at which the state was set. + * @param timestamp timestamp or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatus setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskStatus set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskStatus) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskStatus clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate.java new file mode 100644 index 00000000000..aaf8de54a9a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * An event payload that updates the task's state and optional status message. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate extends com.google.api.client.json.GenericJson { + + /** + * Optional. The status message associated with the state change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskMessage message; + + /** + * Required. The new state of the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. The time at which the status change occurred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Optional. The status message associated with the state change. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage getMessage() { + return message; + } + + /** + * Optional. The status message associated with the state change. + * @param message message or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate setMessage(GoogleCloudAiplatformV1beta1A2aTaskMessage message) { + this.message = message; + return this; + } + + /** + * Required. The new state of the task. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Required. The new state of the task. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Optional. The time at which the status change occurred. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Optional. The time at which the status change occurred. + * @param timestamp timestamp or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskStatusUpdate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java index e0bdbc54171..4d64f143c49 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java @@ -30,15 +30,25 @@ public final class GoogleCloudAiplatformV1beta1AgentResource extends com.google.api.client.json.GenericJson { /** - * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: - * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * Required. The resource name or identifier of the agent to monitor. The format depends on + * `agent_type`: * `REASONING_ENGINE`: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * + * `CLOUD_RUN_SERVICE`, `GKE_WORKLOAD`, `GCE_INSTANCE`: the resource name of the agent's runtime. + * * `AGENT_TYPE_OTHER`: a stable identifier for the agent. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String agent; /** - * Required. The type of the agent. + * Optional. The framework used to build the agent, orthogonal to the runtime `agent_type`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentFramework; + + /** + * Required. The runtime type of the agent. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,8 +63,11 @@ public final class GoogleCloudAiplatformV1beta1AgentResource extends com.google. private java.lang.String location; /** - * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: - * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * Required. The resource name or identifier of the agent to monitor. The format depends on + * `agent_type`: * `REASONING_ENGINE`: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * + * `CLOUD_RUN_SERVICE`, `GKE_WORKLOAD`, `GCE_INSTANCE`: the resource name of the agent's runtime. + * * `AGENT_TYPE_OTHER`: a stable identifier for the agent. * @return value or {@code null} for none */ public java.lang.String getAgent() { @@ -62,8 +75,11 @@ public java.lang.String getAgent() { } /** - * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: - * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * Required. The resource name or identifier of the agent to monitor. The format depends on + * `agent_type`: * `REASONING_ENGINE`: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * + * `CLOUD_RUN_SERVICE`, `GKE_WORKLOAD`, `GCE_INSTANCE`: the resource name of the agent's runtime. + * * `AGENT_TYPE_OTHER`: a stable identifier for the agent. * @param agent agent or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentResource setAgent(java.lang.String agent) { @@ -72,7 +88,24 @@ public GoogleCloudAiplatformV1beta1AgentResource setAgent(java.lang.String agent } /** - * Required. The type of the agent. + * Optional. The framework used to build the agent, orthogonal to the runtime `agent_type`. + * @return value or {@code null} for none + */ + public java.lang.String getAgentFramework() { + return agentFramework; + } + + /** + * Optional. The framework used to build the agent, orthogonal to the runtime `agent_type`. + * @param agentFramework agentFramework or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentResource setAgentFramework(java.lang.String agentFramework) { + this.agentFramework = agentFramework; + return this; + } + + /** + * Required. The runtime type of the agent. * @return value or {@code null} for none */ public java.lang.String getAgentType() { @@ -80,7 +113,7 @@ public java.lang.String getAgentType() { } /** - * Required. The type of the agent. + * Required. The runtime type of the agent. * @param agentType agentType or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentResource setAgentType(java.lang.String agentType) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest.java index d6ad634309a..fdaf9ff41b1 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Request message for AgentEngineTaskStoreService.AppendA2aTaskEvents. + * Request message for AppendA2aTaskEvents. * * This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
@@ -29,17 +29,71 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest extends com.google.api.client.json.GenericJson {
+ /**
+ * Optional. The events to append. Used only if the parent is a TaskStore.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
@@ -29,6 +29,30 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse extends com.google.api.client.json.GenericJson {
+ /**
+ * Task generation matching the last event
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key @com.google.api.client.json.JsonString
+ private java.lang.Long generation;
+
+ /**
+ * Task generation matching the last event
+ * @return value or {@code null} for none
+ */
+ public java.lang.Long getGeneration() {
+ return generation;
+ }
+
+ /**
+ * Task generation matching the last event
+ * @param generation generation or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse setGeneration(java.lang.Long generation) {
+ this.generation = generation;
+ return this;
+ }
+
@Override
public GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse set(String fieldName, Object value) {
return (GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse) super.set(fieldName, value);
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CodeExecutionResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CodeExecutionResult.java
index ef13e4e72ec..cdb2ef3ad81 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CodeExecutionResult.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1CodeExecutionResult.java
@@ -29,6 +29,14 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudAiplatformV1beta1CodeExecutionResult extends com.google.api.client.json.GenericJson {
+ /**
+ * Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the
+ * corresponding `ExecutableCode` has an id.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String id;
+
/**
* Required. Outcome of the code execution.
* The value may be {@code null}.
@@ -44,6 +52,25 @@ public final class GoogleCloudAiplatformV1beta1CodeExecutionResult extends com.g
@com.google.api.client.util.Key
private java.lang.String output;
+ /**
+ * Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the
+ * corresponding `ExecutableCode` has an id.
+ * @return value or {@code null} for none
+ */
+ public java.lang.String getId() {
+ return id;
+ }
+
+ /**
+ * Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the
+ * corresponding `ExecutableCode` has an id.
+ * @param id id or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1CodeExecutionResult setId(java.lang.String id) {
+ this.id = id;
+ return this;
+ }
+
/**
* Required. Outcome of the code execution.
* @return value or {@code null} for none
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExecutableCode.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExecutableCode.java
index f0dc454582a..f9ac866a14c 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExecutableCode.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ExecutableCode.java
@@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1beta1ExecutableCode extends com.google
@com.google.api.client.util.Key
private java.lang.String code;
+ /**
+ * Optional. Unique identifier of the `ExecutableCode` part. The server returns the
+ * `CodeExecutionResult` with the matching `id`.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String id;
+
/**
* Required. Programming language of the `code`.
* The value may be {@code null}.
@@ -62,6 +70,25 @@ public GoogleCloudAiplatformV1beta1ExecutableCode setCode(java.lang.String code)
return this;
}
+ /**
+ * Optional. Unique identifier of the `ExecutableCode` part. The server returns the
+ * `CodeExecutionResult` with the matching `id`.
+ * @return value or {@code null} for none
+ */
+ public java.lang.String getId() {
+ return id;
+ }
+
+ /**
+ * Optional. Unique identifier of the `ExecutableCode` part. The server returns the
+ * `CodeExecutionResult` with the matching `id`.
+ * @param id id or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1ExecutableCode setId(java.lang.String id) {
+ this.id = id;
+ return this;
+ }
+
/**
* Required. Programming language of the `code`.
* @return value or {@code null} for none
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java
index 902cb8b2f97..13d6b072662 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java
@@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1beta1GoogleMaps extends com.google.api
@com.google.api.client.util.Key
private java.lang.Boolean enableWidget;
+ /**
+ * Optional. Specifies the types of Google Maps grounding to enable. Defaults to `places` when
+ * unset.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes groundingTypes;
+
/**
* Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps
* is being deprecated; this field is planned for removal and no longer has any effect once
@@ -59,6 +67,25 @@ public GoogleCloudAiplatformV1beta1GoogleMaps setEnableWidget(java.lang.Boolean
return this;
}
+ /**
+ * Optional. Specifies the types of Google Maps grounding to enable. Defaults to `places` when
+ * unset.
+ * @return value or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes getGroundingTypes() {
+ return groundingTypes;
+ }
+
+ /**
+ * Optional. Specifies the types of Google Maps grounding to enable. Defaults to `places` when
+ * unset.
+ * @param groundingTypes groundingTypes or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1GoogleMaps setGroundingTypes(GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes groundingTypes) {
+ this.groundingTypes = groundingTypes;
+ return this;
+ }
+
@Override
public GoogleCloudAiplatformV1beta1GoogleMaps set(String fieldName, Object value) {
return (GoogleCloudAiplatformV1beta1GoogleMaps) super.set(fieldName, value);
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes.java
new file mode 100644
index 00000000000..e9ec0b79118
--- /dev/null
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes.java
@@ -0,0 +1,93 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+/*
+ * This code was generated by https://github.com/googleapis/google-api-java-client-services/
+ * Modify at your own risk.
+ */
+
+package com.google.api.services.aiplatform.v1beta1.model;
+
+/**
+ * Defines the types of Google Maps grounding that can be enabled and their configurations.
+ *
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
@@ -29,6 +29,19 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse extends com.google.api.client.json.GenericJson {
+ /**
+ * List of A2aTaskEvents in the requested page. Populated only by the TaskStoreService.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec.java
index 38b6c38b0be..a9ad1289f1b 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec.java
@@ -50,6 +50,13 @@ public final class GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnviron
@com.google.api.client.util.Key
private GoogleCloudAiplatformV1beta1PersistentDiskSpec persistentDiskSpec;
+ /**
+ * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig shieldedInstanceConfig;
+
/**
* The specification of a single machine for the execution job.
* @return value or {@code null} for none
@@ -101,6 +108,23 @@ public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec set
return this;
}
+ /**
+ * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM.
+ * @return value or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig getShieldedInstanceConfig() {
+ return shieldedInstanceConfig;
+ }
+
+ /**
+ * Optional. Shielded VM configuration (for example, Secure Boot) for the execution VM.
+ * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec setShieldedInstanceConfig(GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig shieldedInstanceConfig) {
+ this.shieldedInstanceConfig = shieldedInstanceConfig;
+ return this;
+ }
+
@Override
public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec set(String fieldName, Object value) {
return (GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec) super.set(fieldName, value);
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java
new file mode 100644
index 00000000000..ea02cc1fc0e
--- /dev/null
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig.java
@@ -0,0 +1,116 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+/*
+ * This code was generated by https://github.com/googleapis/google-api-java-client-services/
+ * Modify at your own risk.
+ */
+
+package com.google.api.services.aiplatform.v1beta1.model;
+
+/**
+ * A set of Shielded VM options for the execution VM. Mirrors
+ * `google.cloud.notebooks.v2.ShieldedInstanceConfig`. See
+ * https://cloud.google.com/compute/docs/instances/modifying-shielded-vm.
+ *
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *