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: com.google.apis google-api-services-aiplatform - v1-rev20260718-2.0.0 + v1-rev20260725-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260718-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260725-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java index 1308ddfdd86..24f01160825 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java @@ -121511,20 +121511,20 @@ public class V1 { * Create a request for the method "v1.responses". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Responses#execute()} method to invoke the remote operation. + * parameters, call the {@link ResponsesRequest#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 Responses responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) throws java.io.IOException { - Responses result = new Responses(endpoint, content); + public ResponsesRequest responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) throws java.io.IOException { + ResponsesRequest result = new ResponsesRequest(endpoint, content); initialize(result); return result; } - public class Responses extends AiplatformRequest { + public class ResponsesRequest extends AiplatformRequest { private static final String REST_PATH = "v1/{+endpoint}/v1/responses"; @@ -121539,17 +121539,17 @@ public class Responses extends AiplatformRequest {@link - * Responses#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link ResponsesRequest#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1/{+endpoint}/v1/responses/compact"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Compact#execute()} method to invoke the remote operation. + *

{@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 AiplatformRequestThe typical use is:

*
        *   {@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 { - - private static final String REST_PATH = "v1/{+parent}/specialistPools"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Creates a SpecialistPool. + * 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`. * - * Create a request for the method "specialistPools.create". + * Create a request for the method "operations.cancel". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@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 { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+name}:cancel"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * 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`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@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 { + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1/{+name}"; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$"); + /** 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 " + + "^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Deletes a SpecialistPool as well as all Specialists in the pool. + * 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 "specialistPools.delete". + * 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 Delete#execute()} method to invoke the remote operation. - *

{@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 { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@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 { + + private static final String REST_PATH = "v1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * 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'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 { + + private static final String REST_PATH = "v1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/skills/[^/]+/operations/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

+ * {@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 { + + private static final String REST_PATH = "v1/{+parent}/specialistPools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a SpecialistPool. + * + * Create a request for the method "specialistPools.create". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 - * Pause#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * Pause#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} + * @since 1.13 + */ + protected Pause(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1PauseSandboxEnvironmentRequest 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 Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } + + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } + + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } + + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } + + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } + + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } + + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } + + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } + + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } + + @Override + public Pause setUploadType(java.lang.String uploadType) { + return (Pause) super.setUploadType(uploadType); + } + + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) 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}` + */ + @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}` + */ + 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}` + */ + public Pause 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 Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } + } + /** + * Resumes the specific SandboxEnvironment. + * + * Create a request for the method "sandboxEnvironments.resume". + * + * 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. + * + * @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 + */ + 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 class Resume extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:resume"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * Resumes the specific SandboxEnvironment. + * + * Create a request for the method "sandboxEnvironments.resume". + * + * 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.

+ * + * @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 { + + private static final String REST_PATH = "v1/{+name}:snapshot"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Snapshot#execute()} method to invoke the remote operation. + *

{@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 { + /** + * The "operations" collection of methods. + */ + public class Operations { - private static final String REST_PATH = "v1/{+name}:resume"; + /** + * 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`. + * + * Create a request for the method "operations.cancel". + * + * 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 Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + + /** + * 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`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@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 { - @Override - public Resume setAccessToken(java.lang.String accessToken) { - return (Resume) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public Resume setAlt(java.lang.String alt) { - return (Resume) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); - @Override - public Resume setCallback(java.lang.String callback) { - return (Resume) super.setCallback(callback); - } + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@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 { + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1/{+name}:snapshot"; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + /** 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 " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Snapshots the specific SandboxEnvironment resource and creates a SandboxEnvironmentSnapshot - * resource. + * 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 "sandboxEnvironments.snapshot". + * Create a request for the method "operations.wait". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Snapshot#execute()} method to invoke the remote operation. - *

{@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 { - @Override - public Snapshot setAccessToken(java.lang.String accessToken) { - return (Snapshot) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+name}:wait"; - @Override - public Snapshot setAlt(java.lang.String alt) { - return (Snapshot) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+/operations/[^/]+$"); - @Override - public Snapshot setCallback(java.lang.String callback) { - return (Snapshot) super.setCallback(callback); - } + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

+ * {@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)} + * 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 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 " + + "^reasoningEngines/[^/]+/sessions/[^/]+/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 { + + private static final String REST_PATH = "v1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+$"); /** - * 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. + * 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.get". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@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 AiplatformRequestThe typical use is:

+ *
+   *   {@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 { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^schedules/[^/]+/operations/[^/]+$"); /** * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to @@ -171570,136 +173475,132 @@ public class Operations { * * Create a request for the method "operations.cancel". * - * 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. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@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 { + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}:cancel"; + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - /** - * 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`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

{@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 { - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+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/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^schedules/[^/]+/operations/[^/]+$"); - @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 @@ -171707,685 +173608,658 @@ public Cancel set(String parameterName, Object value) { * * 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. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@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 { - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+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/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^schedules/[^/]+/operations/[^/]+$"); - @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. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@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 { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@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 { - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+name}/operations"; - /** 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 " + - "^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^schedules/[^/]+$"); - @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. + * This request holds the parameters needed by the the aiplatform server. After setting any + * 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'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 { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+name}/operations"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+$"); + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** - * 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 the aiplatform server. After setting any - * 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'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 { - /** 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; - } + private static final String REST_PATH = "v1/{+name}:wait"; - /** - * 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; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^schedules/[^/]+/operations/[^/]+$"); - @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 + * 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. + * 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. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

+ * {@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 { - - private static final String REST_PATH = "v1/{+name}:wait"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sessions/[^/]+/operations/[^/]+$"); - - /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

- * {@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 AiplatformRequestThe typical use is:

*
    *   {@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 AiplatformRequest customParameters; + /** + * Optional. Colorspace to be used for all EXR inputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exrColorSpaceOverride; + /** * Human pose parameters for Pose Control * The value may be {@code null}. @@ -283,6 +290,23 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setCustomParameters(java return this; } + /** + * Optional. Colorspace to be used for all EXR inputs. + * @return value or {@code null} for none + */ + public java.lang.String getExrColorSpaceOverride() { + return exrColorSpaceOverride; + } + + /** + * Optional. Colorspace to be used for all EXR inputs. + * @param exrColorSpaceOverride exrColorSpaceOverride or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setExrColorSpaceOverride(java.lang.String exrColorSpaceOverride) { + this.exrColorSpaceOverride = exrColorSpaceOverride; + return this; + } + /** * Human pose parameters for Pose Control * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CodeExecutionResult.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CodeExecutionResult.java index 4e2cc4f9726..f5f0372f60c 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CodeExecutionResult.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CodeExecutionResult.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1CodeExecutionResult 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 GoogleCloudAiplatformV1CodeExecutionResult extends com.google @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 GoogleCloudAiplatformV1CodeExecutionResult 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/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ExecutableCode.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ExecutableCode.java index 05d999dc920..b9d82381e6b 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ExecutableCode.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ExecutableCode.java @@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1ExecutableCode extends com.google.api. @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 GoogleCloudAiplatformV1ExecutableCode 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 GoogleCloudAiplatformV1ExecutableCode 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/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FunctionCall.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FunctionCall.java index f156d9fa93d..e1d87f1073e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FunctionCall.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FunctionCall.java @@ -38,6 +38,14 @@ public final class GoogleCloudAiplatformV1FunctionCall extends com.google.api.cl @com.google.api.client.util.Key private java.util.Map args; + /** + * Optional. The unique id of the function call. If populated, the client to execute the + * `function_call` and return the response with the matching `id`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + /** * Optional. The name of the function to call. Matches FunctionDeclaration.name. * The value may be {@code null}. @@ -80,6 +88,25 @@ public GoogleCloudAiplatformV1FunctionCall setArgs(java.util.Map 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 GoogleCloudAiplatformV1GoogleMapsGroundingTypes extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1GoogleMapsPlaces places; + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1GoogleMapsRouting routing; + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1GoogleMapsPlaces getPlaces() { + return places; + } + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * @param places places or {@code null} for none + */ + public GoogleCloudAiplatformV1GoogleMapsGroundingTypes setPlaces(GoogleCloudAiplatformV1GoogleMapsPlaces places) { + this.places = places; + return this; + } + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1GoogleMapsRouting getRouting() { + return routing; + } + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * @param routing routing or {@code null} for none + */ + public GoogleCloudAiplatformV1GoogleMapsGroundingTypes setRouting(GoogleCloudAiplatformV1GoogleMapsRouting routing) { + this.routing = routing; + return this; + } + + @Override + public GoogleCloudAiplatformV1GoogleMapsGroundingTypes set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1GoogleMapsGroundingTypes) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1GoogleMapsGroundingTypes clone() { + return (GoogleCloudAiplatformV1GoogleMapsGroundingTypes) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsPlaces.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsPlaces.java new file mode 100644 index 00000000000..1cd0dca40aa --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMapsPlaces.java @@ -0,0 +1,43 @@ +/* + * 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 Places data (e.g. QueryPlaces). This is the default Google Maps + * grounding type when no other type is specified. + * + *

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 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 @@ com.google.apis google-api-services-aiplatform - v1-rev20260718-2.0.0 - Agent Platform API v1-rev20260718-2.0.0 + v1-rev20260725-2.0.0 + Agent Platform API v1-rev20260725-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index a3a6c90f770..3be40af624a 100644 --- a/clients/google-api-services-aiplatform/v1/README.md +++ b/clients/google-api-services-aiplatform/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20260718-2.0.0 + v1-rev20260725-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260718-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260725-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md index d85abc540d5..5c9d53e716c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260718-2.0.0 + v1beta1-rev20260725-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260718-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260725-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java index 78ec2e5c5f2..3f68141fa39 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java @@ -156022,20 +156022,20 @@ public class V1 { * Create a request for the method "v1.responses". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Responses#execute()} method to invoke the remote operation. + * parameters, call the {@link ResponsesRequest#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 Responses responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Responses result = new Responses(endpoint, content); + public ResponsesRequest responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + ResponsesRequest result = new ResponsesRequest(endpoint, content); initialize(result); return result; } - public class Responses extends AiplatformRequest { + public class ResponsesRequest extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+endpoint}/v1/responses"; @@ -156050,17 +156050,17 @@ public class Responses extends AiplatformRequest {@link - * Responses#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * optional parameters, call the {@link ResponsesRequest#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+endpoint}/v1/responses/compact"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link Compact#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + + /** + * Deletes the response from the endpoint. + * + * Create a request for the method "responses.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+/v1/responses/[^/]+$"); + + /** + * Gets the response from the endpoint. + * + * Create a request for the method "responses.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@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 AiplatformRequest * - * @param parent Required. The resource name of the ReasoningEngine to create the A2aTask under. Format: - * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param parent Required. The resource name of the ReasoningEngine or TaskStore to create the A2aTask under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1A2aTask} * @since 1.13 */ @@ -168585,22 +169060,27 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the ReasoningEngine to create the A2aTask under. - * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * Required. The resource name of the ReasoningEngine or TaskStore to create the A2aTask + * under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the ReasoningEngine to create the A2aTask under. Format: - `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /** Required. The resource name of the ReasoningEngine or TaskStore to create the A2aTask under. + Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + `projects/{project}/locations/{location}/taskStores/{task_store}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the ReasoningEngine to create the A2aTask under. - * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * Required. The resource name of the ReasoningEngine or TaskStore to create the A2aTask + * under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -168613,16 +169093,16 @@ public Create setParent(java.lang.String parent) { } /** - * Required. User-defined ID of the A2aTask. This ID must be unique within the - * ReasoningEngine. It must be 1-63 characters, start with a lowercase letter or number, - * end with a lowercase letter or number, and only contain lowercase letters, numbers, - * and hyphens [AIP-122](https://google.aip.dev/122). Starting with a number is allowed - * for compatibility with the auto-generated UUID from A2A SDK. + * Required. User-defined ID of the A2aTask. This ID must be unique within the parent + * resource. It must be 1-63 characters, start with a lowercase letter or number, end + * with a lowercase letter or number, and only contain lowercase letters, numbers, and + * hyphens [AIP-122](https://google.aip.dev/122). Starting with a number is allowed for + * compatibility with the auto-generated UUID from A2A SDK. */ @com.google.api.client.util.Key private java.lang.String a2aTaskId; - /** Required. User-defined ID of the A2aTask. This ID must be unique within the ReasoningEngine. It + /** Required. User-defined ID of the A2aTask. This ID must be unique within the parent resource. It must be 1-63 characters, start with a lowercase letter or number, end with a lowercase letter or number, and only contain lowercase letters, numbers, and hyphens [AIP-122](https://google.aip.dev/122). Starting with a number is allowed for compatibility with the @@ -168633,11 +169113,11 @@ public java.lang.String getA2aTaskId() { } /** - * Required. User-defined ID of the A2aTask. This ID must be unique within the - * ReasoningEngine. It must be 1-63 characters, start with a lowercase letter or number, - * end with a lowercase letter or number, and only contain lowercase letters, numbers, - * and hyphens [AIP-122](https://google.aip.dev/122). Starting with a number is allowed - * for compatibility with the auto-generated UUID from A2A SDK. + * Required. User-defined ID of the A2aTask. This ID must be unique within the parent + * resource. It must be 1-63 characters, start with a lowercase letter or number, end + * with a lowercase letter or number, and only contain lowercase letters, numbers, and + * hyphens [AIP-122](https://google.aip.dev/122). Starting with a number is allowed for + * compatibility with the auto-generated UUID from A2A SDK. */ public Create setA2aTaskId(java.lang.String a2aTaskId) { this.a2aTaskId = a2aTaskId; @@ -168659,7 +169139,8 @@ public Create set(String parameterName, Object value) { * * @param name Required. The resource name of the A2aTask to delete. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/a2aTasks/{a2a - * _task}` + * _task}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}/a2aTasks/{a2a_task}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -168688,7 +169169,8 @@ public class Delete extends AiplatformRequest * - * @param parent Required. The resource name of the ReasoningEngine to list the A2aTasks under. Format: - * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param parent Required. The resource name of the ReasoningEngine or TaskStore to list the A2aTasks under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` * @since 1.13 */ protected List(java.lang.String parent) { @@ -169053,22 +169561,27 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the ReasoningEngine to list the A2aTasks under. - * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * Required. The resource name of the ReasoningEngine or TaskStore to list the A2aTasks + * under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the ReasoningEngine to list the A2aTasks under. Format: - `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /** Required. The resource name of the ReasoningEngine or TaskStore to list the A2aTasks under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + `projects/{project}/locations/{location}/taskStores/{task_store}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the ReasoningEngine to list the A2aTasks under. - * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * Required. The resource name of the ReasoningEngine or TaskStore to list the A2aTasks + * under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -169163,22 +169676,19 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * Optional. The next_page_token value returned from a previous list - * AgentEngineTaskStoreService.ListA2aTasks call. + * Optional. The next_page_token value returned from a previous list ListA2aTasks call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. The next_page_token value returned from a previous list - AgentEngineTaskStoreService.ListA2aTasks call. + /** Optional. The next_page_token value returned from a previous list ListA2aTasks call. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. The next_page_token value returned from a previous list - * AgentEngineTaskStoreService.ListA2aTasks call. + * Optional. The next_page_token value returned from a previous list ListA2aTasks call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -169221,7 +169731,8 @@ public class Events { * * @param parent Required. The resource name of the A2aTask to list the TaskEvents under. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/a2aTasks/{a2a - * _task}` + * _task}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}/a2aTasks/{a2a_task}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -169249,7 +169760,8 @@ public class List extends AiplatformRequest customParameters; + /** + * Optional. Colorspace to be used for all EXR inputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exrColorSpaceOverride; + /** * Human pose parameters for Pose Control * The value may be {@code null}. @@ -283,6 +290,23 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setCustomParameters(java return this; } + /** + * Optional. Colorspace to be used for all EXR inputs. + * @return value or {@code null} for none + */ + public java.lang.String getExrColorSpaceOverride() { + return exrColorSpaceOverride; + } + + /** + * Optional. Colorspace to be used for all EXR inputs. + * @param exrColorSpaceOverride exrColorSpaceOverride or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setExrColorSpaceOverride(java.lang.String exrColorSpaceOverride) { + this.exrColorSpaceOverride = exrColorSpaceOverride; + return this; + } + /** * Human pose parameters for Pose Control * @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/GenaiVertexV1beta1GenerationConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java index ee9039c6033..748cf81ca5d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java @@ -106,6 +106,13 @@ public final class GenaiVertexV1beta1GenerationConfig extends com.google.api.cli @com.google.api.client.util.Key private java.lang.Float topP; + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1TranscriptionConfig transcriptionConfig; + /** * Configuration for video generation. * The value may be {@code null}. @@ -300,6 +307,23 @@ public GenaiVertexV1beta1GenerationConfig setTopP(java.lang.Float topP) { return this; } + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig getTranscriptionConfig() { + return transcriptionConfig; + } + + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * @param transcriptionConfig transcriptionConfig or {@code null} for none + */ + public GenaiVertexV1beta1GenerationConfig setTranscriptionConfig(GenaiVertexV1beta1TranscriptionConfig transcriptionConfig) { + this.transcriptionConfig = transcriptionConfig; + return this; + } + /** * Configuration for video generation. * @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/GenaiVertexV1beta1TextContentAnnotation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java index ff096b5bf98..9608c998c0d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java @@ -65,6 +65,13 @@ public final class GenaiVertexV1beta1TextContentAnnotation extends com.google.ap @com.google.api.client.util.Key private GenaiVertexV1beta1UrlCitation urlCitation; + /** + * Word-level ASR annotation with timing and speaker info. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1WordInfo wordInfo; + /** * End of the attributed segment, exclusive. * @return value or {@code null} for none @@ -152,6 +159,23 @@ public GenaiVertexV1beta1TextContentAnnotation setUrlCitation(GenaiVertexV1beta1 return this; } + /** + * Word-level ASR annotation with timing and speaker info. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1WordInfo getWordInfo() { + return wordInfo; + } + + /** + * Word-level ASR annotation with timing and speaker info. + * @param wordInfo wordInfo or {@code null} for none + */ + public GenaiVertexV1beta1TextContentAnnotation setWordInfo(GenaiVertexV1beta1WordInfo wordInfo) { + this.wordInfo = wordInfo; + return this; + } + @Override public GenaiVertexV1beta1TextContentAnnotation set(String fieldName, Object value) { return (GenaiVertexV1beta1TextContentAnnotation) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java new file mode 100644 index 00000000000..bc85a3f11b5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java @@ -0,0 +1,171 @@ +/* + * 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; + +/** + * Configuration for speech recognition (transcription). + * + *

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 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.List adaptationPhrases; + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customVocabulary; + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diarizationMode; + + /** + * Required. BCP-47 language codes providing hints about the languages present in the audio. At + * least one must be specified, or set to ["auto"] to enable automatic language detection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List languageHints; + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List timestampGranularities; + + /** + * Optional. A list of phrases to bias the ASR model towards. + * @return value or {@code null} for none + */ + public java.util.List getAdaptationPhrases() { + return adaptationPhrases; + } + + /** + * Optional. A list of phrases to bias the ASR model towards. + * @param adaptationPhrases adaptationPhrases or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig setAdaptationPhrases(java.util.List adaptationPhrases) { + this.adaptationPhrases = adaptationPhrases; + return this; + } + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * @return value or {@code null} for none + */ + public java.util.List getCustomVocabulary() { + return customVocabulary; + } + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * @param customVocabulary customVocabulary or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig setCustomVocabulary(java.util.List customVocabulary) { + this.customVocabulary = customVocabulary; + return this; + } + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * @return value or {@code null} for none + */ + public java.lang.String getDiarizationMode() { + return diarizationMode; + } + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * @param diarizationMode diarizationMode or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig setDiarizationMode(java.lang.String diarizationMode) { + this.diarizationMode = diarizationMode; + return this; + } + + /** + * Required. BCP-47 language codes providing hints about the languages present in the audio. At + * least one must be specified, or set to ["auto"] to enable automatic language detection. + * @return value or {@code null} for none + */ + public java.util.List getLanguageHints() { + return languageHints; + } + + /** + * Required. BCP-47 language codes providing hints about the languages present in the audio. At + * least one must be specified, or set to ["auto"] to enable automatic language detection. + * @param languageHints languageHints or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig setLanguageHints(java.util.List languageHints) { + this.languageHints = languageHints; + return this; + } + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * @return value or {@code null} for none + */ + public java.util.List getTimestampGranularities() { + return timestampGranularities; + } + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * @param timestampGranularities timestampGranularities or {@code null} for none + */ + public GenaiVertexV1beta1TranscriptionConfig setTimestampGranularities(java.util.List timestampGranularities) { + this.timestampGranularities = timestampGranularities; + return this; + } + + @Override + public GenaiVertexV1beta1TranscriptionConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1TranscriptionConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1TranscriptionConfig clone() { + return (GenaiVertexV1beta1TranscriptionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1WordInfo.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1WordInfo.java new file mode 100644 index 00000000000..425a7fcf437 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1WordInfo.java @@ -0,0 +1,148 @@ +/* + * 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; + +/** + * Word-level ASR annotation for transcription output. Carries the word text, optional timing, and + * optional speaker attribution. + * + *

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 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 data; + + /** + * Optional. The name of the file, when the part represents a file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filename; + + /** + * Optional. The IANA media type of the content, e.g. "text/plain" or "image/png". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mediaType; + + /** + * Optional. Additional context or parameters related to the part. 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.Map metadata; + + /** + * Optional. Raw binary content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String raw; + + /** + * Optional. Textual content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. A URL pointing to the content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Structured data content. + * @return value or {@code null} for none + */ + public java.util.Map getData() { + return data; + } + + /** + * Optional. Structured data content. + * @param data data or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setData(java.util.Map data) { + this.data = data; + return this; + } + + /** + * Optional. The name of the file, when the part represents a file. + * @return value or {@code null} for none + */ + public java.lang.String getFilename() { + return filename; + } + + /** + * Optional. The name of the file, when the part represents a file. + * @param filename filename or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setFilename(java.lang.String filename) { + this.filename = filename; + return this; + } + + /** + * Optional. The IANA media type of the content, e.g. "text/plain" or "image/png". + * @return value or {@code null} for none + */ + public java.lang.String getMediaType() { + return mediaType; + } + + /** + * Optional. The IANA media type of the content, e.g. "text/plain" or "image/png". + * @param mediaType mediaType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setMediaType(java.lang.String mediaType) { + this.mediaType = mediaType; + return this; + } + + /** + * Optional. Additional context or parameters related to the part. Extensions can be used to + * strongly type metadata values for specific use cases. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Additional context or parameters related to the part. Extensions can be used to + * strongly type metadata values for specific use cases. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. Raw binary content. + * @see #decodeRaw() + * @return value or {@code null} for none + */ + public java.lang.String getRaw() { + return raw; + } + + /** + * Optional. Raw binary content. + * @see #getRaw() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeRaw() { + return com.google.api.client.util.Base64.decodeBase64(raw); + } + + /** + * Optional. Raw binary content. + * @see #encodeRaw() + * @param raw raw or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aPart setRaw(java.lang.String raw) { + this.raw = raw; + return this; + } + + /** + * Optional. Raw binary content. + * @see #setRaw() + * + *

+ * 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.List artifacts; + /** * Optional. A generic identifier for grouping related tasks (e.g., session_id, workflow_id). * The value may be {@code null}. @@ -51,6 +65,20 @@ public final class GoogleCloudAiplatformV1beta1A2aTask extends com.google.api.cl @com.google.api.client.util.Key private String expireTime; + /** + * Output only. The task generation number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + + /** + * Output only. The history of the task messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List history; + /** * Optional. Arbitrary, user-defined metadata. * The value may be {@code null}. @@ -60,7 +88,8 @@ public final class GoogleCloudAiplatformV1beta1A2aTask extends com.google.api.cl /** * Identifier. The resource name of the task. Format: `projects/{project}/locations/{location}/rea - * soningEngines/{reasoning_engine}/a2aTasks/{a2a_task}` + * soningEngines/{reasoning_engine}/a2aTasks/{a2a_task}` or + * `projects/{project}/locations/{location}/taskStores/{task_store}/a2aTasks/{a2a_task}` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,6 +118,13 @@ public final class GoogleCloudAiplatformV1beta1A2aTask extends com.google.api.cl @com.google.api.client.util.Key private java.lang.String state; + /** + * Output only. The status of the task, including the state, status message, and timestamp. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1A2aTaskStatus status; + /** * Optional. The status details of the task. * The value may be {@code null}. @@ -111,6 +147,47 @@ public final class GoogleCloudAiplatformV1beta1A2aTask extends com.google.api.cl @com.google.api.client.util.Key private String updateTime; + /** + * Optional. Task owner user ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Optional. Agent application which created the task. + * @return value or {@code null} for none + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. Agent application which created the task. + * @param appId appId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTask setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + /** + * Output only. The artifacts produced by the task. + * @return value or {@code null} for none + */ + public java.util.List getArtifacts() { + return artifacts; + } + + /** + * Output only. The artifacts produced by the task. + * @param artifacts artifacts or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTask setArtifacts(java.util.List artifacts) { + this.artifacts = artifacts; + return this; + } + /** * Optional. A generic identifier for grouping related tasks (e.g., session_id, workflow_id). * @return value or {@code null} for none @@ -164,6 +241,40 @@ public GoogleCloudAiplatformV1beta1A2aTask setExpireTime(String expireTime) { return this; } + /** + * Output only. The task generation number. + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Output only. The task generation number. + * @param generation generation or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTask setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + + /** + * Output only. The history of the task messages. + * @return value or {@code null} for none + */ + public java.util.List getHistory() { + return history; + } + + /** + * Output only. The history of the task messages. + * @param history history or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTask setHistory(java.util.List history) { + this.history = history; + return this; + } + /** * Optional. Arbitrary, user-defined metadata. * @return value or {@code null} for none @@ -183,7 +294,8 @@ public GoogleCloudAiplatformV1beta1A2aTask setMetadata(java.util.Map 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 GoogleCloudAiplatformV1beta1A2aTaskArtifact extends com.google.api.client.json.GenericJson { + + /** + * Required. The unique identifier of the artifact within the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String artifactId; + + /** + * Optional. A human-readable description of the artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The human-readable name of the artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. A2A protocol extensions associated with the artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List extensions; + + /** + * Optional. Additional context or parameters related to the artifact. 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.Map metadata; + + /** + * Required. The content parts that make up the artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List parts; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1A2aPart used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1A2aPart.class); + } + + /** + * Required. The unique identifier of the artifact within the task. + * @return value or {@code null} for none + */ + public java.lang.String getArtifactId() { + return artifactId; + } + + /** + * Required. The unique identifier of the artifact within the task. + * @param artifactId artifactId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setArtifactId(java.lang.String artifactId) { + this.artifactId = artifactId; + return this; + } + + /** + * Optional. A human-readable description of the artifact. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A human-readable description of the artifact. + * @param description description or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The human-readable name of the artifact. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The human-readable name of the artifact. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. A2A protocol extensions associated with the artifact. + * @return value or {@code null} for none + */ + public java.util.List getExtensions() { + return extensions; + } + + /** + * Optional. A2A protocol extensions associated with the artifact. + * @param extensions extensions or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setExtensions(java.util.List extensions) { + this.extensions = extensions; + return this; + } + + /** + * Optional. Additional context or parameters related to the artifact. Extensions can be used to + * strongly type metadata values for specific use cases. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Additional context or parameters related to the artifact. Extensions can be used to + * strongly type metadata values for specific use cases. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Required. The content parts that make up the artifact. + * @return value or {@code null} for none + */ + public java.util.List getParts() { + return parts; + } + + /** + * Required. The content parts that make up the artifact. + * @param parts parts or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskArtifact setParts(java.util.List parts) { + this.parts = parts; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskArtifact set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskArtifact) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskArtifact clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskArtifact) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskArtifactChange.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskArtifactChange.java new file mode 100644 index 00000000000..5afc98603ff --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskArtifactChange.java @@ -0,0 +1,117 @@ +/* + * 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 describing a change to one of the task's artifacts. + * + *

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 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.Map metadata; + + /** + * Output only. The time at which the event was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which the event was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEvent setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. The data describing the change carried by this event. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEventData getEventData() { + return eventData; + } + + /** + * Required. The data describing the change carried by this event. + * @param eventData eventData or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEvent setEventData(GoogleCloudAiplatformV1beta1A2aTaskEventData eventData) { + this.eventData = eventData; + return this; + } + + /** + * Output only. The generation number of the task after this event is applied. + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Output only. The generation number of the task after this event is applied. + * @param generation generation or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEvent setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + + /** + * Optional. Additional context or parameters related to the event. Extensions can be used to + * strongly type metadata values for specific use cases. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Additional context or parameters related to the event. Extensions can be used to + * strongly type metadata values for specific use cases. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskEvent setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskEvent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskEvent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskEvent clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEventData.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEventData.java new file mode 100644 index 00000000000..ba0512a16ee --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskEventData.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * The data describing the change carried by an A2aTaskEvent. Exactly one of the following changes + * is set per event. + * + *

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 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.List extensions; + + /** + * Required. The unique identifier of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String messageId; + + /** + * Optional. Additional context or parameters related to the message. 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.Map metadata; + + /** + * Required. The content parts that make up the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List parts; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1A2aPart used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1A2aPart.class); + } + + /** + * Optional. The IDs of other tasks referenced by this message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List referenceTaskIds; + + /** + * Required. The role of the sender of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Optional. A2A protocol extensions associated with the message. + * @return value or {@code null} for none + */ + public java.util.List getExtensions() { + return extensions; + } + + /** + * Optional. A2A protocol extensions associated with the message. + * @param extensions extensions or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setExtensions(java.util.List extensions) { + this.extensions = extensions; + return this; + } + + /** + * Required. The unique identifier of the message. + * @return value or {@code null} for none + */ + public java.lang.String getMessageId() { + return messageId; + } + + /** + * Required. The unique identifier of the message. + * @param messageId messageId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setMessageId(java.lang.String messageId) { + this.messageId = messageId; + return this; + } + + /** + * Optional. Additional context or parameters related to the message. Extensions can be used to + * strongly type metadata values for specific use cases. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Additional context or parameters related to the message. Extensions can be used to + * strongly type metadata values for specific use cases. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Required. The content parts that make up the message. + * @return value or {@code null} for none + */ + public java.util.List getParts() { + return parts; + } + + /** + * Required. The content parts that make up the message. + * @param parts parts or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setParts(java.util.List parts) { + this.parts = parts; + return this; + } + + /** + * Optional. The IDs of other tasks referenced by this message. + * @return value or {@code null} for none + */ + public java.util.List getReferenceTaskIds() { + return referenceTaskIds; + } + + /** + * Optional. The IDs of other tasks referenced by this message. + * @param referenceTaskIds referenceTaskIds or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setReferenceTaskIds(java.util.List referenceTaskIds) { + this.referenceTaskIds = referenceTaskIds; + return this; + } + + /** + * Required. The role of the sender of the message. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Required. The role of the sender of the message. + * @param role role or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMessage setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskMessage set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskMessage clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMetadataChange.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMetadataChange.java new file mode 100644 index 00000000000..9dceafeb65c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskMetadataChange.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; + +/** + * An event payload describing a change to the task-level metadata. + * + *

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 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.Map metadata; + + /** + * Optional. A field mask indicating which metadata paths changed. If unset, all fields are + * updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** + * Required. The complete task metadata after the change. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Required. The complete task metadata after the change. + * @param metadata metadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMetadataChange setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. A field mask indicating which metadata paths changed. If unset, all fields are + * updated. + * @return value or {@code null} for none + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. A field mask indicating which metadata paths changed. If unset, all fields are + * updated. + * @param updateMask updateMask or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1A2aTaskMetadataChange setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskMetadataChange set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1A2aTaskMetadataChange) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1A2aTaskMetadataChange clone() { + return (GoogleCloudAiplatformV1beta1A2aTaskMetadataChange) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatus.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatus.java new file mode 100644 index 00000000000..069508de47d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1A2aTaskStatus.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; + +/** + * Represents the status of an A2aTask. + * + *

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 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 events; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1A2aTaskEvent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1A2aTaskEvent.class); + } + + /** + * Optional. The current task generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + /** * Required. The events to append. The number of events to append must be less than or equal to - * 100. Otherwise, an exception will be thrown. + * 100. Otherwise, an exception will be thrown. Used only if the parent is a ReasoningEngine. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List taskEvents; + /** + * Optional. The events to append. Used only if the parent is a TaskStore. + * @return value or {@code null} for none + */ + public java.util.List getEvents() { + return events; + } + + /** + * Optional. The events to append. Used only if the parent is a TaskStore. + * @param events events or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest setEvents(java.util.List events) { + this.events = events; + return this; + } + + /** + * Optional. The current task generation. + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Optional. The current task generation. + * @param generation generation or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + /** * Required. The events to append. The number of events to append must be less than or equal to - * 100. Otherwise, an exception will be thrown. + * 100. Otherwise, an exception will be thrown. Used only if the parent is a ReasoningEngine. * @return value or {@code null} for none */ public java.util.List getTaskEvents() { @@ -48,7 +102,7 @@ public java.util.List getTaskEvents() { /** * Required. The events to append. The number of events to append must be less than or equal to - * 100. Otherwise, an exception will be thrown. + * 100. Otherwise, an exception will be thrown. Used only if the parent is a ReasoningEngine. * @param taskEvents taskEvents or {@code null} for none */ public GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest setTaskEvents(java.util.List taskEvents) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse.java index 072ee8100e8..241451ca969 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AppendA2aTaskEventsResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Response message for AgentEngineTaskStoreService.AppendA2aTaskEvents. + * Response 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,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 + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GoogleMapsPlaces places; + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GoogleMapsRouting routing; + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GoogleMapsPlaces getPlaces() { + return places; + } + + /** + * Optional. Enables grounding with Google Maps Places. This is the default grounding type when no + * `GroundingTypes` are specified. + * @param places places or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes setPlaces(GoogleCloudAiplatformV1beta1GoogleMapsPlaces places) { + this.places = places; + return this; + } + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GoogleMapsRouting getRouting() { + return routing; + } + + /** + * Optional. Enables grounding with Google Maps Routing APIs (ComputeRoutes and SearchAlongRoute). + * @param routing routing or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes setRouting(GoogleCloudAiplatformV1beta1GoogleMapsRouting routing) { + this.routing = routing; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes clone() { + return (GoogleCloudAiplatformV1beta1GoogleMapsGroundingTypes) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsPlaces.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsPlaces.java new file mode 100644 index 00000000000..f57275ba4fc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsPlaces.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Grounding with Google Maps Places data (e.g. QueryPlaces). This is the default Google Maps + * grounding type when no other type is specified. + * + *

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 GoogleCloudAiplatformV1beta1GoogleMapsPlaces extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsPlaces set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1GoogleMapsPlaces) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsPlaces clone() { + return (GoogleCloudAiplatformV1beta1GoogleMapsPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsRouting.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsRouting.java new file mode 100644 index 00000000000..7a483e94dd9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMapsRouting.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.v1beta1.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 GoogleCloudAiplatformV1beta1GoogleMapsRouting extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsRouting set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1GoogleMapsRouting) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1GoogleMapsRouting clone() { + return (GoogleCloudAiplatformV1beta1GoogleMapsRouting) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse.java index 9a0fde3a2cb..e30fd98773d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Response message for AgentEngineTaskStoreService.ListA2aTaskEvents. + * Response message for ListA2aTaskEvents. * *

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 events; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1A2aTaskEvent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1A2aTaskEvent.class); + } + /** * A token to retrieve the next page of results. * The value may be {@code null}. @@ -37,12 +50,29 @@ public final class GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse extends private java.lang.String nextPageToken; /** - * List of TaskEvents in the requested page. + * List of TaskEvents in the requested page. Populated only by the AgentEngineTaskStoreService. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List taskEvents; + /** + * List of A2aTaskEvents in the requested page. Populated only by the TaskStoreService. + * @return value or {@code null} for none + */ + public java.util.List getEvents() { + return events; + } + + /** + * List of A2aTaskEvents in the requested page. Populated only by the TaskStoreService. + * @param events events or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse setEvents(java.util.List events) { + this.events = events; + return this; + } + /** * A token to retrieve the next page of results. * @return value or {@code null} for none @@ -61,7 +91,7 @@ public GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse setNextPageToken(ja } /** - * List of TaskEvents in the requested page. + * List of TaskEvents in the requested page. Populated only by the AgentEngineTaskStoreService. * @return value or {@code null} for none */ public java.util.List getTaskEvents() { @@ -69,7 +99,7 @@ public java.util.List getTaskEvents() { } /** - * List of TaskEvents in the requested page. + * List of TaskEvents in the requested page. Populated only by the AgentEngineTaskStoreService. * @param taskEvents taskEvents or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListA2aTaskEventsResponse setTaskEvents(java.util.List taskEvents) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTasksResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTasksResponse.java index 239b5718a45..364c8353853 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTasksResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListA2aTasksResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Response message for AgentEngineTaskStoreService.ListA2aTasks. + * Response message for ListA2aTasks. * *

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 + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig setEnableVtpm(java.lang.Boolean enableVtpm) { + this.enableVtpm = enableVtpm; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig clone() { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpecShieldedInstanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime.java index 6293a53ca93..b4e6d152f3a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime.java @@ -29,6 +29,57 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime setCustomContainerImage(GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage getVmImage() { + return vmImage; + } + + /** + * A specific Compute Engine VM image to run the notebook on. + * @param vmImage vmImage or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime setVmImage(GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage vmImage) { + this.vmImage = vmImage; + return this; + } + @Override public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage.java new file mode 100644 index 00000000000..0121e9b6784 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage.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.v1beta1.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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage clone() { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeContainerImage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage.java new file mode 100644 index 00000000000..68f24343514 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage.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.v1beta1.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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage clone() { + return (GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntimeVmImage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java index e6016af154a..51be0b0811e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java @@ -30,7 +30,7 @@ public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate 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 GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredicate 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 GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredicate getDuration() { @@ -52,7 +52,7 @@ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredi } /** - * 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 GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate setDuration(GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredicate duration) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml index 394875e004a..500ab93bf16 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1beta1-rev20260718-2.0.0 - Agent Platform API v1beta1-rev20260718-2.0.0 + v1beta1-rev20260725-2.0.0 + Agent Platform API v1beta1-rev20260725-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index d85abc540d5..5c9d53e716c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260718-2.0.0 + v1beta1-rev20260725-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260718-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260725-2.0.0' } ```