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 fcd0721f2c1..72e1e2082b8 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:
The typical use is:
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor.
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. The typical use is: The typical use is: {@link
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is:
- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: The typical use is: {@link
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Agents.List request = aiplatform.agents().list(parameters ...)}
+ * {@code Aiplatform.AgentAnomalyDetectionScopes.List request = aiplatform.agentAnomalyDetectionScopes().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Agents agents() {
- return new Agents();
+ public AgentAnomalyDetectionScopes agentAnomalyDetectionScopes() {
+ return new AgentAnomalyDetectionScopes();
}
/**
- * The "agents" collection of methods.
+ * The "agentAnomalyDetectionScopes" collection of methods.
*/
- public class Agents {
+ public class AgentAnomalyDetectionScopes {
/**
- * Creates an agent.
+ * Creates a new AgentAnomalyDetectionScope.
*
- * Create a request for the method "agents.create".
+ * Create a request for the method "agentAnomalyDetectionScopes.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 resource name of the location to create the agent in. Format:
- * `projects/{project}/locations/{location}`.
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent}
+ * @param parent Required. The resource name of the Location to create the AgentAnomalyDetectionScope in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -46213,15 +46213,15 @@ public Create create(java.lang.String parent, com.google.api.services.aiplatform
public class Create extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Agents.List request = aiplatform.agents().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Agents agents() {
+ return new Agents();
+ }
+
+ /**
+ * The "agents" collection of methods.
+ */
+ public class Agents {
+
/**
- * An accessor for creating requests from the Operations collection.
+ * Creates an agent.
*
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "agents.create".
*
- * @return the resource 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.
+ *
+ * @param parent Required. The resource name of the location to create the agent in. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent}
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Create extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class 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.
+ * 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.wait".
+ * 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 Wait#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource to wait on.
+ * @param name The name of the operation resource to be cancelled.
* @return the request
*/
- public Wait wait(java.lang.String name) throws java.io.IOException {
- Wait result = new Wait(name);
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
initialize(result);
return result;
}
- public class Wait extends AiplatformRequest
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Apps apps() {
- return new Apps();
- }
-
- /**
- * The "apps" collection of methods.
- */
- public class Apps {
-
- /**
- * An accessor for creating requests from the Operations collection.
- *
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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 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;
- }
-
- public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
+ * {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
*
*
* @return the resource collection
*/
- public BatchPredictionJobs batchPredictionJobs() {
- return new BatchPredictionJobs();
+ public Apps apps() {
+ return new Apps();
}
/**
- * The "batchPredictionJobs" collection of methods.
+ * The "apps" collection of methods.
*/
- public class BatchPredictionJobs {
+ public class Apps {
/**
- * Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The
- * server makes the best effort to cancel the job, but success is not guaranteed. Clients can use
- * JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or
- * whether the job completed despite cancellation. On a successful cancellation, the
- * BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any
- * files already outputted by the job are not deleted.
- *
- * Create a request for the method "batchPredictionJobs.cancel".
+ * 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 Cancel#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 name of the BatchPredictionJob to cancel. Format:
- * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest}
- * @return the request
+ * @return the resource collection
*/
- public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) throws java.io.IOException {
- Cancel result = new Cancel(name, content);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/batchPredictionJobs/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the BatchPredictionJob to cancel. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the BatchPredictionJob to cancel. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - 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/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - * start. - * - * Create a request for the method "batchPredictionJobs.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 resource name of the Location to create the BatchPredictionJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * Create a request for the method "operations.delete". * - * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob} - * @since 1.13 + * 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 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to create the BatchPredictionJob in. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Location to create the BatchPredictionJob in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location to create the BatchPredictionJob in. - * Format: `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 Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. - * - * Create a request for the method "batchPredictionJobs.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 BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @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 Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/batchPredictionJobs/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the BatchPredictionJob resource to be deleted. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the BatchPredictionJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - 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/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a BatchPredictionJob - * - * Create a request for the method "batchPredictionJobs.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 BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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/[^/]+/batchPredictionJobs/[^/]+$"); - } - } - - @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); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/apps/[^/]+$"); + } + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The name of the BatchPredictionJob resource. Format: - `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - */ - public java.lang.String getName() { - return name; - } + @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/[^/]+/apps/[^/]+$"); + } + 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); + } + } /** - * Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * 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 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/[^/]+/batchPredictionJobs/[^/]+$"); - } - this.name = name; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/apps/[^/]+/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/[^/]+/apps/[^/]+/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 BatchPredictionJobs collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public BatchPredictionJobs batchPredictionJobs() {
+ return new BatchPredictionJobs();
+ }
+
+ /**
+ * The "batchPredictionJobs" collection of methods.
+ */
+ public class BatchPredictionJobs {
+
/**
- * Lists BatchPredictionJobs in a Location.
+ * Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The
+ * server makes the best effort to cancel the job, but success is not guaranteed. Clients can use
+ * JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or
+ * whether the job completed despite cancellation. On a successful cancellation, the
+ * BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any
+ * files already outputted by the job are not deleted.
*
- * Create a request for the method "batchPredictionJobs.list".
+ * Create a request for the method "batchPredictionJobs.cancel".
*
* 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.
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
*
- * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format:
- * `projects/{project}/locations/{location}`
+ * @param name Required. The name of the BatchPredictionJob to cancel. Format:
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest}
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
initialize(result);
return result;
}
- public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - * `projects/{project}/locations/{location}` + * @param name Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @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); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the BatchPredictionJob to cancel. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ - public List setParent(java.lang.String parent) { + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * - * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` - * supports general map functions that is: `labels.key=value` - key:value equality - * `labels.key:* - key existence Some examples of using the filter are: * - * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" - * OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` - comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must - be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - - key:value equality `labels.key:* - key existence Some examples of using the filter are: * - `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR - display_name="my_job"` * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * - `labels.keyA=valueA` * `labels.keyB:*` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * - * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` - * supports general map functions that is: `labels.key=value` - key:value equality - * `labels.key:* - key existence Some examples of using the filter are: * - * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" - * OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - 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. Typically obtained via - * ListBatchPredictionJobsResponse.next_page_token of the previous - * JobService.ListBatchPredictionJobs call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. Typically obtained via - ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs - call. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * The standard list page token. Typically obtained via - * ListBatchPredictionJobsResponse.next_page_token of the previous - * JobService.ListBatchPredictionJobs call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the CachedContents collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.CachedContents.List request = aiplatform.cachedContents().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public CachedContents cachedContents() {
- return new CachedContents();
- }
-
- /**
- * The "cachedContents" collection of methods.
- */
- public class CachedContents {
-
/**
- * Creates cached content, this call will initialize the cached content in the data storage, and
- * users need to pay for the cache data storage.
+ * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to
+ * start.
*
- * Create a request for the method "cachedContents.create".
+ * Create a request for the method "batchPredictionJobs.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 resource where the cached content will be created
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent}
+ * @param parent Required. The resource name of the Location to create the BatchPredictionJob in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Create extends AiplatformRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The resource name referring to the cached content + * @param name Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchPredictionJob.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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -49908,22 +50057,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The resource name referring to the cached content */ + /** + * Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name referring to the cached content + /** Required. The name of the BatchPredictionJob resource. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ public java.lang.String getName() { return name; } - /** Required. The resource name referring to the cached content */ + /** + * Required. The name of the BatchPredictionJob resource. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + */ 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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -49935,14 +50091,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists cached contents in a project + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "cachedContents.list". + * Create a request for the method "batchPredictionJobs.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 parent Required. The parent, which owns this collection of cached contents. + * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + * `projects/{project}/locations/{location}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -49951,28 +50108,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent, which owns this collection of cached contents. + * @param parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCachedContentsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.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(), @@ -50046,17 +50204,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent, which owns this collection of cached contents. */ + /** + * Required. The resource name of the Location to list the BatchPredictionJobs from. + * Format: `projects/{project}/locations/{location}` + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent, which owns this collection of cached contents. + /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } - /** Required. The parent, which owns this collection of cached contents. */ + /** + * Required. The resource name of the Location to list the BatchPredictionJobs from. + * Format: `projects/{project}/locations/{location}` + */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -50068,465 +50233,208 @@ public List setParent(java.lang.String parent) { } /** - * Optional. The maximum number of cached contents to return. The service may return fewer - * than this value. If unspecified, some default (under maximum) number of items will be - * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * + * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` + * supports general map functions that is: `labels.key=value` - key:value equality + * `labels.key:* - key existence Some examples of using the filter are: * + * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" + * OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` + comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must + be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - + key:value equality `labels.key:* - key existence Some examples of using the filter are: * + `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR + display_name="my_job"` * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * + `labels.keyA=valueA` * `labels.keyB:*` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * + * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` + * supports general map functions that is: `labels.key=value` - key:value equality + * `labels.key:* - key existence Some examples of using the filter are: * + * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" + * OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` */ + 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; - /** Optional. The maximum number of cached contents to return. The service may return fewer than this - value. If unspecified, some default (under maximum) number of items will be returned. The maximum - value is 1000; values above 1000 will be coerced to 1000. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. The maximum number of cached contents to return. The service may return fewer - * than this value. If unspecified, some default (under maximum) number of items will be - * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token, received from a previous `ListCachedContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListCachedContents` must match the call that provided the page token. + * The standard list page token. Typically obtained via + * ListBatchPredictionJobsResponse.next_page_token of the previous + * JobService.ListBatchPredictionJobs call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token, received from a previous `ListCachedContents` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListCachedContents` must match the call that provided the page token. + /** The standard list page token. Typically obtained via + ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs + call. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A page token, received from a previous `ListCachedContents` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListCachedContents` must match the call that provided the page token. + * The standard list page token. Typically obtained via + * ListBatchPredictionJobsResponse.next_page_token of the previous + * JobService.ListBatchPredictionJobs call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the CachedContents collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.CachedContents.List request = aiplatform.cachedContents().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public CachedContents cachedContents() {
+ return new CachedContents();
+ }
+
+ /**
+ * The "cachedContents" collection of methods.
+ */
+ public class CachedContents {
+
/**
- * Updates cached content configurations
+ * Creates cached content, this call will initialize the cached content in the data storage, and
+ * users need to pay for the cache data storage.
*
- * Create a request for the method "cachedContents.patch".
+ * Create a request for the method "cachedContents.create".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name Immutable. Identifier. The server-generated resource name of the cached content Format:
- * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ * @param parent Required. The parent resource where the cached content will be created
* @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent}
* @return the request
*/
- public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException {
- Patch result = new Patch(name, content);
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Patch extends AiplatformRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} + * @param parent Required. The parent resource where the cached content will be created * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Immutable. Identifier. The server-generated resource name of the cached content Format: - projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - public java.lang.String getName() { - return name; - } - - /** - * Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} - */ - public Patch 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } - - /** Required. The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the CustomJobs collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public CustomJobs customJobs() {
- return new CustomJobs();
- }
-
- /**
- * The "customJobs" collection of methods.
- */
- public class CustomJobs {
-
- /**
- * Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best
- * effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob
- * or other methods to check whether the cancellation succeeded or whether the job completed despite
- * cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job
- * with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to
- * `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.
- *
- * Create a request for the method "customJobs.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 Required. The name of the CustomJob to cancel. Format:
- * `projects/{project}/locations/{location}/customJobs/{custom_job}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest}
- * @return the request
- */
- public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) throws java.io.IOException {
- Cancel result = new Cancel(name, content);
- initialize(result);
- return result;
- }
-
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest} - * @since 1.13 - */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the CustomJob to cancel. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the CustomJob to cancel. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - 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/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Creates a CustomJob. A created CustomJob right away will be attempted to be run. - * - * Create a request for the method "customJobs.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 resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override @@ -50559,24 +50467,17 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - */ + /** Required. The parent resource where the cached content will be created */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location to create the CustomJob in. Format: - `projects/{project}/locations/{location}` + /** Required. The parent resource where the cached content will be created */ public java.lang.String getParent() { return parent; } - /** - * Required. The resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - */ + /** Required. The parent resource where the cached content will be created */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -50593,15 +50494,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a CustomJob. + * Deletes cached content * - * Create a request for the method "customJobs.delete". + * Create a request for the method "cachedContents.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 CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param name Required. The resource name referring to the cached content * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -50610,17 +50510,17 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param name Required. The resource name referring to the cached content * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } } @@ -50844,29 +50734,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ + /** Required. The resource name referring to the cached content */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the CustomJob resource. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` + /** Required. The resource name referring to the cached content */ public java.lang.String getName() { return name; } - /** - * Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ + /** Required. The resource name referring to the cached content */ 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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } this.name = name; return this; @@ -50878,15 +50761,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists CustomJobs in a Location. + * Lists cached contents in a project * - * Create a request for the method "customJobs.list". + * Create a request for the method "cachedContents.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 parent Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The parent, which owns this collection of cached contents. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -50895,29 +50777,28 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The parent, which owns this collection of cached contents. * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCustomJobsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCachedContentsResponse.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(), @@ -50991,24 +50872,17 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` - */ + /** Required. The parent, which owns this collection of cached contents. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location to list the CustomJobs from. Format: - `projects/{project}/locations/{location}` + /** Required. The parent, which owns this collection of cached contents. */ public java.lang.String getParent() { return parent; } - /** - * Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` - */ + /** Required. The parent, which owns this collection of cached contents. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -51020,1134 +50894,856 @@ public List setParent(java.lang.String parent) { } /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, - `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general - map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some - examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + * Optional. The maximum number of cached contents to return. The service may return fewer + * than this value. If unspecified, some default (under maximum) number of items will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */ - 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. + /** Optional. The maximum number of cached contents to return. The service may return fewer than this + value. If unspecified, some default (under maximum) number of items will be returned. The maximum + value is 1000; values above 1000 will be coerced to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** + * Optional. The maximum number of cached contents to return. The service may return fewer + * than this value. If unspecified, some default (under maximum) number of items will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + * Optional. A page token, received from a previous `ListCachedContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListCachedContents` must match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the - previous JobService.ListCustomJobs call. + /** Optional. A page token, received from a previous `ListCachedContents` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListCachedContents` must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. - */ + * Optional. A page token, received from a previous `ListCachedContents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListCachedContents` must match the call that provided the page token. + */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Updates cached content configurations * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "cachedContents.patch".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ *
+ * @param name Immutable. Identifier. The server-generated resource name of the cached content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent}
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) throws java.io.IOException {
+ Patch result = new Patch(name, content);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Patch extends AiplatformRequest{@link + * Patch#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 + * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/cachedContents/[^/]+$"); + } } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** Immutable. Identifier. The server-generated resource name of the cached content Format: + projects/{project}/locations/{location}/cachedContents/{cached_content} + */ + public java.lang.String getName() { + return name; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + /** + * Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} + */ + public Patch 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/[^/]+/cachedContents/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } - /** 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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + + } + /** + * An accessor for creating requests from the CustomJobs collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public CustomJobs customJobs() {
+ return new CustomJobs();
+ }
+
+ /**
+ * The "customJobs" collection of methods.
+ */
+ public class CustomJobs {
+
+ /**
+ * Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best
+ * effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob
+ * or other methods to check whether the cancellation succeeded or whether the job completed despite
+ * cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job
+ * with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.
+ *
+ * Create a request for the method "customJobs.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 Required. The name of the CustomJob to cancel. Format:
+ * `projects/{project}/locations/{location}/customJobs/{custom_job}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be deleted. - * @return the request + * @param name Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelCustomJobRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+$"); + } } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The name of the CustomJob to cancel. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; + /** + * Required. The name of the CustomJob to cancel. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + 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/[^/]+/customJobs/[^/]+$"); } + this.name = name; + return this; + } - /** 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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } + } + /** + * Creates a CustomJob. A created CustomJob right away will be attempted to be run. + * + * Create a request for the method "customJobs.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 resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param parent Required. The resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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 class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the Location to create the CustomJob in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the Location to create the CustomJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The resource name of the Location to create the CustomJob in. Format: + * `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 Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a CustomJob. + * + * Create a request for the method "customJobs.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 CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param name Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+$"); + } } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. The name of the CustomJob resource to be deleted. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + 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/[^/]+/customJobs/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a CustomJob. + * + * Create a request for the method "customJobs.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 CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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 List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CustomJob.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/[^/]+/customJobs/[^/]+$"); } + } - /** 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/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/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); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - } - } - /** - * An accessor for creating requests from the DataLabelingJobs collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DataLabelingJobs dataLabelingJobs() {
- return new DataLabelingJobs();
- }
-
- /**
- * The "dataLabelingJobs" collection of methods.
- */
- public class DataLabelingJobs {
-
- /**
- * Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
- *
- * Create a request for the method "dataLabelingJobs.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 Required. The name of the DataLabelingJob. Format:
- * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest}
- * @return the request
- */
- public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) throws java.io.IOException {
- Cancel result = new Cancel(name, content);
- initialize(result);
- return result;
- }
-
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} - * @since 1.13 - */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+$"); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** Required. The name of the CustomJob resource. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` */ - public Cancel setName(java.lang.String name) { + 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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a DataLabelingJob. + * Lists CustomJobs in a Location. * - * Create a request for the method "dataLabelingJobs.create". + * Create a request for the method "customJobs.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.class); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCustomJobsResponse.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(), @@ -52157,507 +51753,89 @@ protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1b } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + 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); } /** - * Required. The parent of the DataLabelingJob. Format: + * Required. The resource name of the Location to list the CustomJobs from. Format: * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + /** Required. The resource name of the Location to list the CustomJobs from. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The parent of the DataLabelingJob. Format: + * Required. The resource name of the Location to list the CustomJobs from. Format: * `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 DataLabelingJob. - * - * Create a request for the method "dataLabelingJobs.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 DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+$"); - } - } - - @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 DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the DataLabelingJob to be deleted. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the DataLabelingJob to be deleted. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - 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/[^/]+/dataLabelingJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a DataLabelingJob. - * - * Create a request for the method "dataLabelingJobs.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 DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.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/[^/]+/dataLabelingJobs/[^/]+$"); - } - } - - @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 DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - */ - 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/[^/]+/dataLabelingJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists DataLabelingJobs in a Location. - * - * Create a request for the method "dataLabelingJobs.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 parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.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 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); - } - - /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { + public List 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 " + @@ -52707,29 +51885,6 @@ public List setFilter(java.lang.String filter) { return this; } - /** - * A comma-separated list of fields to order by, sorted in ascending order by default. Use - * `desc` after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` - after a field name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order by default. Use - * `desc` after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; @@ -52746,45 +51901,40 @@ public List setPageSize(java.lang.Integer pageSize) { return this; } - /** The standard list page token. */ + /** + * The standard list page token. Typically obtained via + * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the + previous JobService.ListCustomJobs call. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** + * The standard list page token. Typically obtained via + * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Mask specifying which fields to read. FieldMask represents a set of symbolic field - * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in - * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are - * returned. - */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For - example, the mask can be `paths: "name"`. The "name" here is a field in DataLabelingJob. If this - field is not set, all fields of the DataLabelingJob are returned. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** - * Mask specifying which fields to read. FieldMask represents a set of symbolic field - * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in - * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are - * returned. - */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -52844,7 +51994,7 @@ public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Datasets.List request = aiplatform.datasets().list(parameters ...)}
+ * {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Datasets datasets() {
- return new Datasets();
+ public DataLabelingJobs dataLabelingJobs() {
+ return new DataLabelingJobs();
}
/**
- * The "datasets" collection of methods.
+ * The "dataLabelingJobs" collection of methods.
*/
- public class Datasets {
+ public class DataLabelingJobs {
/**
- * Assembles each row of a multimodal dataset and writes the result into a BigQuery table.
+ * Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
*
- * Create a request for the method "datasets.assemble".
- *
- * This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Assemble#execute()} method to invoke the remote operation.
- *
- * @param name Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest}
- * @return the request
- */
- public Assemble assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) throws java.io.IOException {
- Assemble result = new Assemble(name, content);
- initialize(result);
- return result;
- }
-
- public class Assemble extends AiplatformRequest{@link - * Assemble#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 Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} - * @since 1.13 - */ - protected Assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); - } - } - - @Override - public Assemble set$Xgafv(java.lang.String $Xgafv) { - return (Assemble) super.set$Xgafv($Xgafv); - } - - @Override - public Assemble setAccessToken(java.lang.String accessToken) { - return (Assemble) super.setAccessToken(accessToken); - } - - @Override - public Assemble setAlt(java.lang.String alt) { - return (Assemble) super.setAlt(alt); - } - - @Override - public Assemble setCallback(java.lang.String callback) { - return (Assemble) super.setCallback(callback); - } - - @Override - public Assemble setFields(java.lang.String fields) { - return (Assemble) super.setFields(fields); - } - - @Override - public Assemble setKey(java.lang.String key) { - return (Assemble) super.setKey(key); - } - - @Override - public Assemble setOauthToken(java.lang.String oauthToken) { - return (Assemble) super.setOauthToken(oauthToken); - } - - @Override - public Assemble setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assemble) super.setPrettyPrint(prettyPrint); - } - - @Override - public Assemble setQuotaUser(java.lang.String quotaUser) { - return (Assemble) super.setQuotaUser(quotaUser); - } - - @Override - public Assemble setUploadType(java.lang.String uploadType) { - return (Assemble) super.setUploadType(uploadType); - } - - @Override - public Assemble setUploadProtocol(java.lang.String uploadProtocol) { - return (Assemble) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public Assemble 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/[^/]+/datasets/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Assemble set(String parameterName, Object value) { - return (Assemble) super.set(parameterName, value); - } - } - /** - * Assesses the state or validity of the dataset with respect to a given use case. - * - * Create a request for the method "datasets.assess". + * Create a request for the method "dataLabelingJobs.cancel". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Assess#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} * @return the request */ - public Assess assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) throws java.io.IOException { - Assess result = new Assess(name, content); + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Assess extends AiplatformRequest{@link - * Assess#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#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 Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest} * @since 1.13 */ - protected Assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } } @Override - public Assess set$Xgafv(java.lang.String $Xgafv) { - return (Assess) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Assess setAccessToken(java.lang.String accessToken) { - return (Assess) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Assess setAlt(java.lang.String alt) { - return (Assess) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Assess setCallback(java.lang.String callback) { - return (Assess) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Assess setFields(java.lang.String fields) { - return (Assess) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Assess setKey(java.lang.String key) { - return (Assess) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Assess setOauthToken(java.lang.String oauthToken) { - return (Assess) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assess) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Assess setQuotaUser(java.lang.String quotaUser) { - return (Assess) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Assess setUploadType(java.lang.String uploadType) { - return (Assess) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Assess setUploadProtocol(java.lang.String uploadProtocol) { - return (Assess) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Required. The name of the DataLabelingJob. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ - public Assess setName(java.lang.String name) { + 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } this.name = name; return this; } @Override - public Assess set(String parameterName, Object value) { - return (Assess) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Creates a Dataset. + * Creates a DataLabelingJob. * - * Create a request for the method "datasets.create". + * Create a request for the method "dataLabelingJobs.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 resource name of the Location to create the Dataset in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends AiplatformRequest{@link - * Export#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 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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @since 1.13 */ - protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob.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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } } @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + 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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** Required. The name of the DataLabelingJob. Format: + `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ - public Export setName(java.lang.String name) { + 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } this.name = name; return this; } @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets a Dataset. + * Lists DataLabelingJobs in a Location. * - * Create a request for the method "datasets.get". + * Create a request for the method "dataLabelingJobs.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the Dataset resource. + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @@ -54398,4030 +53412,3680 @@ 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); } - /** Required. The name of the Dataset resource. */ + /** + * Required. The parent of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the Dataset resource. + /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the Dataset resource. */ - public Get setName(java.lang.String name) { + /** + * Required. The parent of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}` + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** Mask specifying which fields to read. */ + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ @com.google.api.client.util.Key - private String readMask; + private java.lang.String filter; - /** Mask specifying which fields to read. + /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general + map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some + examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` */ - public String getReadMask() { - return readMask; + public java.lang.String getFilter() { + return filter; } - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "datasets.getIamPolicy". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends AiplatformRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 + * A comma-separated list of fields to order by, sorted in ascending order by default. Use + * `desc` after a field name for descending. */ - protected GetIamPolicy(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + /** A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` + after a field name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + /** + * A comma-separated list of fields to order by, sorted in ascending order by default. Use + * `desc` after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ + /** The standard list page token. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String pageToken; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** The standard list page token. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getPageToken() { + return pageToken; } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } - this.resource = resource; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Mask specifying which fields to read. FieldMask represents a set of symbolic field + * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in + * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are + * returned. */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private String readMask; - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For + example, the mask can be `paths: "name"`. The "name" here is a field in DataLabelingJob. If this + field is not set, all fields of the DataLabelingJob are returned. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public String getReadMask() { + return readMask; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * Mask specifying which fields to read. FieldMask represents a set of symbolic field + * paths. For example, the mask can be `paths: "name"`. The "name" here is a field in + * DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are + * returned. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public List setReadMask(String readMask) { + this.readMask = readMask; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + /** - * Imports data into a Dataset. - * - * Create a request for the method "datasets.import". + * 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 AiplatformImport#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 name of the Dataset resource. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest}
- * @return the request
+ * @return the resource collection
*/
- public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) throws java.io.IOException {
- AiplatformImport result = new AiplatformImport(name, content);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class AiplatformImport extends AiplatformRequest{@link AiplatformImport#initialize(com.google.api.client.googleapis.services.Abs - * tractGoogleClientRequest)} 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 name Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } - @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public AiplatformImport 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/[^/]+/datasets/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); - } - } - /** - * Lists Datasets in a Location. - * - * Create a request for the method "datasets.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 parent Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetsResponse.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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** Required. The name of the Dataset's parent resource. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the Dataset's parent resource. Format: - * `projects/{project}/locations/{location}` - */ - public List 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/[^/]+$"); + /** 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; } - this.parent = parent; - return this; - } - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `display_name`: supports = and != * - * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key - * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** 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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** An expression for filtering the results of the request. For field names both snake_case and - camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = - and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality - * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a - key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` - */ - public java.lang.String getFilter() { - return filter; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `display_name`: supports = and != * - * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key - * existence * A key including a space must be quoted. `labels."a key"`. Some examples: * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` + * 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 List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `display_name` * `create_time` * - * `update_time` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a Dataset. - * - * Create a request for the method "datasets.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - public class Patch extends AiplatformRequest{@link - * Patch#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 List#execute()} method to invoke the remote operation. * - * @param name Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Output only. Identifier. The resource name of the Dataset. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Output only. Identifier. The resource name of the Dataset. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public Patch 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/[^/]+/datasets/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * - * `labels` - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Required. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` - */ - public String getUpdateMask() { - return updateMask; - } + @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/[^/]+/dataLabelingJobs/[^/]+$"); + } + 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); + } + } /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * - * `labels` + * 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 Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/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 Datasets collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Datasets.List request = aiplatform.datasets().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Datasets datasets() {
+ return new Datasets();
+ }
+
+ /**
+ * The "datasets" collection of methods.
+ */
+ public class Datasets {
+
/**
- * Searches DataItems in a Dataset.
+ * Assembles each row of a multimodal dataset and writes the result into a BigQuery table.
*
- * Create a request for the method "datasets.searchDataItems".
+ * Create a request for the method "datasets.assemble".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link SearchDataItems#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Assemble#execute()} method to invoke the remote operation.
*
- * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format:
+ * @param name Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest}
* @return the request
*/
- public SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException {
- SearchDataItems result = new SearchDataItems(dataset);
+ public Assemble assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) throws java.io.IOException {
+ Assemble result = new Assemble(name, content);
initialize(result);
return result;
}
- public class SearchDataItems extends AiplatformRequest{@link SearchDataItems#initialize(com.google.api.client.googleapis.services.Abst - * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link Assemble#execute()} method to invoke the remote operation. + *{@link + * Assemble#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * @param name Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest} * @since 1.13 */ - protected SearchDataItems(java.lang.String dataset) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchDataItemsResponse.class); - this.dataset = com.google.api.client.util.Preconditions.checkNotNull(dataset, "Required parameter dataset must be specified."); + protected Assemble(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssembleDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Assemble set$Xgafv(java.lang.String $Xgafv) { + return (Assemble) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Assemble setAccessToken(java.lang.String accessToken) { + return (Assemble) super.setAccessToken(accessToken); } @Override - public SearchDataItems set$Xgafv(java.lang.String $Xgafv) { - return (SearchDataItems) super.set$Xgafv($Xgafv); + public Assemble setAlt(java.lang.String alt) { + return (Assemble) super.setAlt(alt); } @Override - public SearchDataItems setAccessToken(java.lang.String accessToken) { - return (SearchDataItems) super.setAccessToken(accessToken); + public Assemble setCallback(java.lang.String callback) { + return (Assemble) super.setCallback(callback); } @Override - public SearchDataItems setAlt(java.lang.String alt) { - return (SearchDataItems) super.setAlt(alt); + public Assemble setFields(java.lang.String fields) { + return (Assemble) super.setFields(fields); } @Override - public SearchDataItems setCallback(java.lang.String callback) { - return (SearchDataItems) super.setCallback(callback); - } - - @Override - public SearchDataItems setFields(java.lang.String fields) { - return (SearchDataItems) super.setFields(fields); - } - - @Override - public SearchDataItems setKey(java.lang.String key) { - return (SearchDataItems) super.setKey(key); + public Assemble setKey(java.lang.String key) { + return (Assemble) super.setKey(key); } @Override - public SearchDataItems setOauthToken(java.lang.String oauthToken) { - return (SearchDataItems) super.setOauthToken(oauthToken); + public Assemble setOauthToken(java.lang.String oauthToken) { + return (Assemble) super.setOauthToken(oauthToken); } @Override - public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchDataItems) super.setPrettyPrint(prettyPrint); + public Assemble setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assemble) super.setPrettyPrint(prettyPrint); } @Override - public SearchDataItems setQuotaUser(java.lang.String quotaUser) { - return (SearchDataItems) super.setQuotaUser(quotaUser); + public Assemble setQuotaUser(java.lang.String quotaUser) { + return (Assemble) super.setQuotaUser(quotaUser); } @Override - public SearchDataItems setUploadType(java.lang.String uploadType) { - return (SearchDataItems) super.setUploadType(uploadType); + public Assemble setUploadType(java.lang.String uploadType) { + return (Assemble) super.setUploadType(uploadType); } @Override - public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + public Assemble setUploadProtocol(java.lang.String uploadProtocol) { + return (Assemble) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Dataset from which to search DataItems. Format: + * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key - private java.lang.String dataset; + private java.lang.String name; - /** Required. The resource name of the Dataset from which to search DataItems. Format: + /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getDataset() { - return dataset; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Dataset from which to search DataItems. Format: + * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public SearchDataItems setDataset(java.lang.String dataset) { + public Assemble setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.dataset = dataset; - return this; - } - - /** - * An expression that specifies what Annotations will be returned per DataItem. - * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should - * belong to. - */ - @com.google.api.client.util.Key - private java.util.List{@link + * Assess#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 Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest} + * @since 1.13 */ - public java.lang.String getOrderBy() { - return orderBy; + protected Assess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AssessDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); + } } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public SearchDataItems setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public Assess set$Xgafv(java.lang.String $Xgafv) { + return (Assess) super.set$Xgafv($Xgafv); } - /** - * A comma-separated list of annotation fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. Must also specify saved_query. - */ - @com.google.api.client.util.Key("orderByAnnotation.orderBy") - private java.lang.String orderByAnnotationOrderBy; - - /** A comma-separated list of annotation fields to order by, sorted in ascending order. Use "desc" - after a field name for descending. Must also specify saved_query. - */ - public java.lang.String getOrderByAnnotationOrderBy() { - return orderByAnnotationOrderBy; + @Override + public Assess setAccessToken(java.lang.String accessToken) { + return (Assess) super.setAccessToken(accessToken); } - /** - * A comma-separated list of annotation fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. Must also specify saved_query. - */ - public SearchDataItems setOrderByAnnotationOrderBy(java.lang.String orderByAnnotationOrderBy) { - this.orderByAnnotationOrderBy = orderByAnnotationOrderBy; - return this; + @Override + public Assess setAlt(java.lang.String alt) { + return (Assess) super.setAlt(alt); } - /** - * Required. Saved query of the Annotation. Only Annotations belong to this saved query - * will be considered for ordering. - */ - @com.google.api.client.util.Key("orderByAnnotation.savedQuery") - private java.lang.String orderByAnnotationSavedQuery; - - /** Required. Saved query of the Annotation. Only Annotations belong to this saved query will be - considered for ordering. - */ - public java.lang.String getOrderByAnnotationSavedQuery() { - return orderByAnnotationSavedQuery; + @Override + public Assess setCallback(java.lang.String callback) { + return (Assess) super.setCallback(callback); } - /** - * Required. Saved query of the Annotation. Only Annotations belong to this saved query - * will be considered for ordering. - */ - public SearchDataItems setOrderByAnnotationSavedQuery(java.lang.String orderByAnnotationSavedQuery) { - this.orderByAnnotationSavedQuery = orderByAnnotationSavedQuery; - return this; + @Override + public Assess setFields(java.lang.String fields) { + return (Assess) super.setFields(fields); } - /** - * A comma-separated list of data item fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderByDataItem; - - /** A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" after - a field name for descending. - */ - public java.lang.String getOrderByDataItem() { - return orderByDataItem; + @Override + public Assess setKey(java.lang.String key) { + return (Assess) super.setKey(key); } - /** - * A comma-separated list of data item fields to order by, sorted in ascending order. Use - * "desc" after a field name for descending. - */ - public SearchDataItems setOrderByDataItem(java.lang.String orderByDataItem) { - this.orderByDataItem = orderByDataItem; - return this; + @Override + public Assess setOauthToken(java.lang.String oauthToken) { + return (Assess) super.setOauthToken(oauthToken); } - /** - * Requested page size. Server may return fewer results than requested. Default and - * maximum page size is 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Requested page size. Server may return fewer results than requested. Default and maximum page size - is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assess) super.setPrettyPrint(prettyPrint); } - /** - * Requested page size. Server may return fewer results than requested. Default and - * maximum page size is 100. - */ - public SearchDataItems setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + @Override + public Assess setQuotaUser(java.lang.String quotaUser) { + return (Assess) super.setQuotaUser(quotaUser); } - /** - * A token identifying a page of results for the server to return Typically obtained via - * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems - * call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A token identifying a page of results for the server to return Typically obtained via - SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Assess setUploadType(java.lang.String uploadType) { + return (Assess) super.setUploadType(uploadType); } - /** - * A token identifying a page of results for the server to return Typically obtained via - * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems - * call. - */ - public SearchDataItems setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Assess setUploadProtocol(java.lang.String uploadProtocol) { + return (Assess) super.setUploadProtocol(uploadProtocol); } /** - * The resource name of a SavedQuery(annotation set in UI). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * All of the search will be done in the context of this SavedQuery. + * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key - private java.lang.String savedQuery; + private java.lang.String name; - /** The resource name of a SavedQuery(annotation set in UI). Format: - `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the - search will be done in the context of this SavedQuery. + /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getSavedQuery() { - return savedQuery; + public java.lang.String getName() { + return name; } /** - * The resource name of a SavedQuery(annotation set in UI). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * All of the search will be done in the context of this SavedQuery. + * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public SearchDataItems setSavedQuery(java.lang.String savedQuery) { - this.savedQuery = savedQuery; + public Assess 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/[^/]+/datasets/[^/]+$"); + } + this.name = name; return this; } @Override - public SearchDataItems set(String parameterName, Object value) { - return (SearchDataItems) super.set(parameterName, value); + public Assess set(String parameterName, Object value) { + return (Assess) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Creates a Dataset. * - * Create a request for the method "datasets.setIamPolicy". + * Create a request for the method "datasets.create". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @param parent Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class SetIamPolicy extends AiplatformRequest{@link - * SetIamPolicy#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 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 resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @param parent Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The resource name of the Location to create the Dataset in. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` */ - public SetIamPolicy setResource(java.lang.String resource) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.resource = resource; + this.parent = parent; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Deletes a Dataset. * - * Create a request for the method "datasets.testIamPermissions". + * Create a request for the method "datasets.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * 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 resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The resource name of the Dataset to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.resource = resource; + this.name = name; return this; } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Exports data from a Dataset. + * + * Create a request for the method "datasets.export". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Export#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @return the request + */ + public Export export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) throws java.io.IOException { + Export result = new Export(name, content); + initialize(result); + return result; + } + + public class Export extends AiplatformRequest{@link + * Export#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 Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @since 1.13 + */ + protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } + + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } + + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } + + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } + + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } + + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } + + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } + + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } + + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } + + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } + + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key - private java.util.ListThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.AnnotationSpecs.List request = aiplatform.annotationSpecs().list(parameters ...)}
- *
+ * Create a request for the method "datasets.get".
*
- * @return the resource collection
+ * 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 Dataset resource.
+ * @return the request
*/
- public AnnotationSpecs annotationSpecs() {
- return new AnnotationSpecs();
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
}
- /**
- * The "annotationSpecs" collection of methods.
- */
- public class AnnotationSpecs {
+ public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the AnnotationSpec resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp - * ec}` - * @return the request + * @param name Required. The name of the Dataset resource. + * @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.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); + } } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the AnnotationSpec resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp - * ec}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AnnotationSpec.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Dataset resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The name of the Dataset resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Required. The name of the Dataset 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/[^/]+/datasets/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** Required. The name of the AnnotationSpec resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ - public java.lang.String getName() { - return name; - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ - 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - this.name = name; - return this; - } + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "datasets.getIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + public class GetIamPolicy extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "datasets.getIamPolicy".
*
- * @return the resource collection
+ * This request holds the parameters needed by the the aiplatform server. After setting any
+ * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote
+ * operation. {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 */ - public Operations operations() { - return new Operations(); + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } } - /** - * The "operations" collection of methods. - */ - public class Operations { + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - /** - * 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; - } + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + this.resource = resource; + return this; + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Imports data into a Dataset. + * + * Create a request for the method "datasets.import". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AiplatformImport#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} + * @return the request + */ + public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) throws java.io.IOException { + AiplatformImport result = new AiplatformImport(name, content); + initialize(result); + return result; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + public class AiplatformImport extends AiplatformRequest{@link AiplatformImport#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} + * @since 1.13 + */ + protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); } + } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + @Override + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); + } - @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 AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } - @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; + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public AiplatformImport 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/[^/]+/datasets/[^/]+$"); } + this.name = name; + return this; + } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Lists Datasets in a Location. + * + * Create a request for the method "datasets.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 parent Required. The name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetsResponse.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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the Dataset's parent resource. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @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; + /** + * Required. The name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + */ + public List 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; + } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. Supported fields: * `display_name` * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - } - 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; - } + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + 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); + } + } + /** + * Updates a Dataset. + * + * Create a request for the method "datasets.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + Patch result = new Patch(name, content); + 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 Patch extends AiplatformRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset.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/[^/]+/datasets/[^/]+$"); } + } - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** + * Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Output only. Identifier. The resource name of the Dataset. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } - /** - * 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; + /** + * Output only. Identifier. The resource name of the Dataset. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public Patch 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/[^/]+/datasets/[^/]+$"); + } + 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. - */ - public String getTimeout() { - return timeout; - } + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * + * `labels` + */ + @com.google.api.client.util.Key + private String updateMask; - /** - * 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; - } + /** Required. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * + * `labels` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * An accessor for creating requests from the DataItems collection. + * Searches DataItems in a Dataset. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
- *
+ * Create a request for the method "datasets.searchDataItems".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link SearchDataItems#execute()} method to invoke the remote operation.
+ *
+ * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
+ * @return the request
*/
- public DataItems dataItems() {
- return new DataItems();
+ public SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException {
+ SearchDataItems result = new SearchDataItems(dataset);
+ initialize(result);
+ return result;
}
- /**
- * The "dataItems" collection of methods.
- */
- public class DataItems {
+ public class SearchDataItems extends AiplatformRequest{@link SearchDataItems#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* - * @param parent Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @return the request + * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected SearchDataItems(java.lang.String dataset) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchDataItemsResponse.class); + this.dataset = com.google.api.client.util.Preconditions.checkNotNull(dataset, "Required parameter dataset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), + "Parameter dataset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataItemsResponse.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/[^/]+/datasets/[^/]+$"); - } - } + @Override + public SearchDataItems setAccessToken(java.lang.String accessToken) { + return (SearchDataItems) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public SearchDataItems setAlt(java.lang.String alt) { + return (SearchDataItems) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public SearchDataItems setCallback(java.lang.String callback) { + return (SearchDataItems) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public SearchDataItems setFields(java.lang.String fields) { + return (SearchDataItems) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public SearchDataItems setKey(java.lang.String key) { + return (SearchDataItems) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public SearchDataItems setOauthToken(java.lang.String oauthToken) { + return (SearchDataItems) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchDataItems) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public SearchDataItems setQuotaUser(java.lang.String quotaUser) { + return (SearchDataItems) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public SearchDataItems setUploadType(java.lang.String uploadType) { + return (SearchDataItems) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String dataset; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the Dataset from which to search DataItems. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getDataset() { + return dataset; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public SearchDataItems setDataset(java.lang.String dataset) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), + "Parameter dataset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } + this.dataset = dataset; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** + * An expression that specifies what Annotations will be returned per DataItem. + * Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` + * - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should + * belong to. + */ + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
- *
- *
- * @return the resource collection
+ * A comma-separated list of fields to order by, sorted in ascending order. Use "desc"
+ * after a field name for descending.
*/
- public Annotations annotations() {
- return new Annotations();
+ public SearchDataItems setOrderBy(java.lang.String orderBy) {
+ this.orderBy = orderBy;
+ return this;
}
/**
- * The "annotations" collection of methods.
+ * A comma-separated list of annotation fields to order by, sorted in ascending order. Use
+ * "desc" after a field name for descending. Must also specify saved_query.
*/
- public class Annotations {
+ @com.google.api.client.util.Key("orderByAnnotation.orderBy")
+ private java.lang.String orderByAnnotationOrderBy;
- /**
- * Lists Annotations belongs to a dataitem.
- *
- * Create a request for the method "annotations.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 parent Required. The resource name of the DataItem to list Annotations from. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
+ /** A comma-separated list of annotation fields to order by, sorted in ascending order. Use "desc"
+ after a field name for descending. Must also specify saved_query.
+ */
+ public java.lang.String getOrderByAnnotationOrderBy() {
+ return orderByAnnotationOrderBy;
+ }
- public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAnnotationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - } - } + /** + * Required. Saved query of the Annotation. Only Annotations belong to this saved query + * will be considered for ordering. + */ + public SearchDataItems setOrderByAnnotationSavedQuery(java.lang.String orderByAnnotationSavedQuery) { + this.orderByAnnotationSavedQuery = orderByAnnotationSavedQuery; + return this; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * A comma-separated list of data item fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderByDataItem; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" after + a field name for descending. + */ + public java.lang.String getOrderByDataItem() { + return orderByDataItem; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * A comma-separated list of data item fields to order by, sorted in ascending order. Use + * "desc" after a field name for descending. + */ + public SearchDataItems setOrderByDataItem(java.lang.String orderByDataItem) { + this.orderByDataItem = orderByDataItem; + return this; + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Requested page size. Server may return fewer results than requested. Default and + * maximum page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** Requested page size. Server may return fewer results than requested. Default and maximum page size + is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @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); - } + /** + * Requested page size. Server may return fewer results than requested. Default and + * maximum page size is 100. + */ + public SearchDataItems setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * A token identifying a page of results for the server to return Typically obtained via + * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** A token identifying a page of results for the server to return Typically obtained via + SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * A token identifying a page of results for the server to return Typically obtained via + * SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems + * call. + */ + public SearchDataItems setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * The resource name of a SavedQuery(annotation set in UI). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * All of the search will be done in the context of this SavedQuery. + */ + @com.google.api.client.util.Key + private java.lang.String savedQuery; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** The resource name of a SavedQuery(annotation set in UI). Format: + `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the + search will be done in the context of this SavedQuery. + */ + public java.lang.String getSavedQuery() { + return savedQuery; + } - /** - * Required. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * The resource name of a SavedQuery(annotation set in UI). Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * All of the search will be done in the context of this SavedQuery. + */ + public SearchDataItems setSavedQuery(java.lang.String savedQuery) { + this.savedQuery = savedQuery; + return this; + } - /** Required. The resource name of the DataItem to list Annotations from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public SearchDataItems set(String parameterName, Object value) { + return (SearchDataItems) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "datasets.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } - /** - * Required. The resource name of the DataItem to list Annotations from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - */ - public List 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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - } - this.parent = parent; - return this; - } + public class SetIamPolicy extends AiplatformRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
+ /**
+ * REQUIRED: The resource for which the policy is being specified. See [Resource
+ * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
+ * for this field.
+ */
+ public SetIamPolicy setResource(java.lang.String resource) {
+ if (!getSuppressPatternChecks()) {
+ com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
+ "Parameter resource must conform to the pattern " +
+ "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$");
}
+ this.resource = resource;
+ return this;
+ }
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ @Override
+ public SetIamPolicy set(String parameterName, Object value) {
+ return (SetIamPolicy) super.set(parameterName, value);
+ }
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist,
+ * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is
+ * designed to be used for building permission-aware UIs and command-line tools, not for
+ * authorization checking. This operation may "fail open" without warning.
+ *
+ * Create a request for the method "datasets.testIamPermissions".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation.
+ *
+ * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource
+ * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
+ * this field.
+ * @return the request
+ */
+ public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException {
+ TestIamPermissions result = new TestIamPermissions(resource);
+ initialize(result);
+ return result;
+ }
- /**
- * 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;
- }
+ public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + } - /** - * 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.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + this.resource = resource; + return this; + } - /** 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.AnnotationSpecs.List request = aiplatform.annotationSpecs().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AnnotationSpecs annotationSpecs() {
+ return new AnnotationSpecs();
+ }
- /**
- * 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.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } + /** + * The "annotationSpecs" collection of methods. + */ + public class AnnotationSpecs { - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * Gets an AnnotationSpec. + * + * Create a request for the method "annotationSpecs.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 AnnotationSpec resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp + * ec}` + * @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 Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the AnnotationSpec resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp + * ec}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AnnotationSpec.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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); - } - } + /** + * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Required. The name of the AnnotationSpec resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + public java.lang.String getName() { + return name; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
- @Override
- public Get setKey(java.lang.String key) {
- return (Get) super.setKey(key);
- }
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
- @Override
- public Get setOauthToken(java.lang.String oauthToken) {
- return (Get) super.setOauthToken(oauthToken);
- }
+ /**
+ * 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;
+ }
- @Override
- public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
- return (Get) super.setPrettyPrint(prettyPrint);
- }
+ public class Cancel extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); - } - } - - @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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and - * those that are unreachable are returned in the ListOperationsResponse.unreachable - * field. This can only be `true` when reading across collections. For example, when - * `parent` is set to `"projects/example/locations/-"`. This field is not supported - * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly - * documented otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and - * those that are unreachable are returned in the ListOperationsResponse.unreachable - * field. This can only be `true` when reading across collections. For example, when - * `parent` is set to `"projects/example/locations/-"`. This field is not supported - * by default and will result in an `UNIMPLEMENTED` error if set unless explicitly - * documented otherwise in service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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 Operations collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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 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;
- }
-
- public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+ * {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DatasetVersions datasetVersions() {
- return new DatasetVersions();
+ public DataItems dataItems() {
+ return new DataItems();
}
/**
- * The "datasetVersions" collection of methods.
+ * The "dataItems" collection of methods.
*/
- public class DatasetVersions {
+ public class DataItems {
/**
- * Create a version from a Dataset.
+ * Lists DataItems in a Dataset.
*
- * Create a request for the method "datasetVersions.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 name of the Dataset resource. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); - } - } - - @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 name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - 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/[^/]+/datasets/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a Dataset version. - * - * Create a request for the method "datasetVersions.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 Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } - - @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 resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Dataset version to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a Dataset version. - * - * Create a request for the method "datasetVersions.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 resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - } - - @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 resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Dataset version to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Dataset version to delete. Format: `projects/{proj - * ect}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } - this.name = name; - return this; - } - - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists DatasetVersions in a Dataset. - * - * Create a request for the method "datasetVersions.list". + * Create a request for the method "dataItems.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 parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * @param parent Required. The resource name of the Dataset to list DataItems from. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` * @return the request */ @@ -59682,29 +57901,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * @param parent Required. The resource name of the Dataset to list DataItems from. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDataItemsResponse.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(), @@ -59779,13 +57998,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * Required. The resource name of the Dataset to list DataItems from. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Dataset to list DatasetVersions from. Format: + /** Required. The resource name of the Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */ public java.lang.String getParent() { @@ -59793,7 +58012,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * Required. The resource name of the Dataset to list DataItems from. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` */ public List setParent(java.lang.String parent) { @@ -59806,88 +58025,88 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. The standard list filter. */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. The standard list filter. + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** Optional. The standard list filter. */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. */ @com.google.api.client.util.Key private java.lang.String orderBy; - /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after - a field name for descending. + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. */ public java.lang.String getOrderBy() { return orderBy; } /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The standard list page size. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** Optional. The standard list page token. */ + /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. The standard list page token. + /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** Optional. The standard list page token. */ + /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Optional. Mask specifying which fields to read. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -59898,1655 +58117,1202 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** - * Updates a DatasetVersion. + * An accessor for creating requests from the Annotations collection. * - * Create a request for the method "datasetVersions.patch". + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
+ *
*
- * This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
- *
- * @param name Output only. Identifier. The resource name of the DatasetVersion. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi
- * on}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion}
- * @return the request
+ * @return the resource collection
*/
- public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException {
- Patch result = new Patch(name, content);
- initialize(result);
- return result;
+ public Annotations annotations() {
+ return new Annotations();
}
- public class Patch extends AiplatformRequest{@link - * Patch#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 List#execute()} method to invoke the remote operation. * - * @param name Output only. Identifier. The resource name of the DatasetVersion. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} - * @since 1.13 + * @param parent Required. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAnnotationsResponse.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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ - * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Output only. Identifier. The resource name of the DatasetVersion. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ - * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - public Patch 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, - * see google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Required. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - public String getUpdateMask() { - return updateMask; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, - * see google.protobuf.FieldMask. Updatable fields: * `display_name` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Restores a dataset version. - * - * Create a request for the method "datasetVersions.restore". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Restore#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the DatasetVersion resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @return the request - */ - public Restore restore(java.lang.String name) throws java.io.IOException { - Restore result = new Restore(name); - initialize(result); - return result; - } + /** + * Required. The resource name of the DataItem to list Annotations from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - public class Restore extends AiplatformRequest{@link - * Restore#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 DatasetVersion resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 - */ - protected Restore(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Restore set$Xgafv(java.lang.String $Xgafv) { - return (Restore) super.set$Xgafv($Xgafv); - } + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - @Override - public Restore setAccessToken(java.lang.String accessToken) { - return (Restore) super.setAccessToken(accessToken); - } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - @Override - public Restore setAlt(java.lang.String alt) { - return (Restore) super.setAlt(alt); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Restore setCallback(java.lang.String callback) { - return (Restore) super.setCallback(callback); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Restore setFields(java.lang.String fields) { - return (Restore) super.setFields(fields); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Restore setKey(java.lang.String key) { - return (Restore) super.setKey(key); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Restore setOauthToken(java.lang.String oauthToken) { - return (Restore) super.setOauthToken(oauthToken); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Restore) super.setPrettyPrint(prettyPrint); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Restore setQuotaUser(java.lang.String quotaUser) { - return (Restore) super.setQuotaUser(quotaUser); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Restore setUploadType(java.lang.String uploadType) { - return (Restore) super.setUploadType(uploadType); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Restore setUploadProtocol(java.lang.String uploadProtocol) { - return (Restore) super.setUploadProtocol(uploadProtocol); + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } /** - * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the DatasetVersion resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
*/
- public java.lang.String getName() {
- return name;
+ public Operations operations() {
+ return new Operations();
}
/**
- * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati
- * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+ * The "operations" collection of methods.
*/
- public Restore 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$");
+ public class 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 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;
}
- this.name = name;
- return this;
- }
- @Override
- public Restore set(String parameterName, Object value) {
- return (Restore) super.set(parameterName, value);
- }
- }
+ public class Cancel extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
+ private static final String REST_PATH = "v1beta1/{+name}:cancel";
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ private final java.util.regex.Pattern NAME_PATTERN =
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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 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;
- }
-
- public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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.v1beta1.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** 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/[^/]+/datasets/[^/]+/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 + * 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; } - this.name = name; - return this; - } - @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; - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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.v1beta1.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** 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/[^/]+/datasets/[^/]+/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. + * + * @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; } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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.v1beta1.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/[^/]+/datasets/[^/]+/operations/[^/]+$"); - } - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @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 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 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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** 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/[^/]+/datasets/[^/]+/operations/[^/]+$"); + @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; } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); - } - } + /** + * 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.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); + } + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @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 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 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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @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. */ + @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 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/[^/]+/datasets/[^/]+$"); - } - this.name = name; - 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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** 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 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 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. */ + @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 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 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. */ + @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 java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** 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. + */ + @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 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; - } + /** + * 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; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/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.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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 " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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. + */ + @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 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; - } + /** + * 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); + } + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the SavedQueries collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.SavedQueries.List request = aiplatform.savedQueries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public SavedQueries savedQueries() {
- return new SavedQueries();
- }
-
- /**
- * The "savedQueries" collection of methods.
- */
- public class SavedQueries {
-
/**
- * Deletes a SavedQuery.
- *
- * Create a request for the method "savedQueries.delete".
+ * 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 Delete#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 SavedQuery to delete. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
- * @return the request
+ * @return the resource collection
*/
- public Delete delete(java.lang.String name) throws java.io.IOException {
- Delete result = new Delete(name);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 Required. The resource name of the SavedQuery to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ - * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the SavedQuery to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ - * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - */ - 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists SavedQueries in a Dataset. - * - * Create a request for the method "savedQueries.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 parent Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.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/[^/]+/datasets/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the Dataset to list SavedQueries from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public List 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/[^/]+/datasets/[^/]+$"); - } - this.parent = parent; - 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; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - 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; - } - - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; - - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } - - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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 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;
- }
-
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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 setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } @Override public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { @@ -61583,7 +59349,7 @@ 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -61618,7 +59384,7 @@ public class Delete extends AiplatformRequest
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DeploymentResourcePools.List request = aiplatform.deploymentResourcePools().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DeploymentResourcePools deploymentResourcePools() {
- return new DeploymentResourcePools();
- }
-
- /**
- * The "deploymentResourcePools" collection of methods.
- */
- public class DeploymentResourcePools {
-
/**
- * Create a DeploymentResourcePool.
- *
- * Create a request for the method "deploymentResourcePools.create".
+ * An accessor for creating requests from the DatasetVersions 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.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+ *
*
- * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format:
- * `projects/{project}/locations/{location}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest}
- * @return the request
+ * @return the resource collection
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
+ public DatasetVersions datasetVersions() {
+ return new DatasetVersions();
}
- public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} - * @since 1.13 + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @return the request */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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 Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * Required. The parent location resource where this DeploymentResourcePool will be - * created. Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Required. The parent location resource where this DeploymentResourcePool will be - * created. Format: `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 Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Delete a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.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 DeploymentResourcePool to delete. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_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 Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the DeploymentResourcePool to delete. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @since 1.13 + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @return the request */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the DeploymentResourcePool to delete. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - 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/[^/]+/deploymentResourcePools/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Get a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.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 DeploymentResourcePool to retrieve. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @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 Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 DeploymentResourcePool to retrieve. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @since 1.13 + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool.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/[^/]+/deploymentResourcePools/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - @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 name of the DeploymentResourcePool to retrieve. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - 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/[^/]+/deploymentResourcePools/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * List DeploymentResourcePools in a location. - * - * Create a request for the method "deploymentResourcePools.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 parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - * `projects/{project}/locations/{location}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.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/[^/]+/datasets/[^/]+$"); + } + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` - */ - public List 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 List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * The maximum number of DeploymentResourcePools to return. The service may return fewer - * than this value. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this - value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * The maximum number of DeploymentResourcePools to return. The service may return fewer - * than this value. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListDeploymentResourcePools` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The resource name of the Dataset to list DatasetVersions from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } - /** A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to - `ListDeploymentResourcePools` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public List 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListDeploymentResourcePools` must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Optional. The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Update a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Immutable. The resource name of the DeploymentResourcePool. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** Optional. The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - public class Patch extends AiplatformRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Immutable. The resource name of the DeploymentResourcePool. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+$"); + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Immutable. The resource name of the DeploymentResourcePool. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getName() { - return name; - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public Patch 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/[^/]+/deploymentResourcePools/[^/]+$"); + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - this.name = name; - return this; - } - - /** Required. The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * List DeployedModels that have been deployed on this DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.queryDeployedModels". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote operation. - * - * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @return the request - */ - public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { - QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); - initialize(result); - return result; - } - public class QueryDeployedModels extends AiplatformRequest{@link QueryDeployedModels#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @since 1.13 - */ - protected QueryDeployedModels(java.lang.String deploymentResourcePool) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.class); - this.deploymentResourcePool = com.google.api.client.util.Preconditions.checkNotNull(deploymentResourcePool, "Required parameter deploymentResourcePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), - "Parameter deploymentResourcePool must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - } - - @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 QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { - return (QueryDeployedModels) super.set$Xgafv($Xgafv); - } - - @Override - public QueryDeployedModels setAccessToken(java.lang.String accessToken) { - return (QueryDeployedModels) super.setAccessToken(accessToken); - } - - @Override - public QueryDeployedModels setAlt(java.lang.String alt) { - return (QueryDeployedModels) super.setAlt(alt); - } - - @Override - public QueryDeployedModels setCallback(java.lang.String callback) { - return (QueryDeployedModels) super.setCallback(callback); - } - - @Override - public QueryDeployedModels setFields(java.lang.String fields) { - return (QueryDeployedModels) super.setFields(fields); - } - - @Override - public QueryDeployedModels setKey(java.lang.String key) { - return (QueryDeployedModels) super.setKey(key); - } - - @Override - public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { - return (QueryDeployedModels) super.setOauthToken(oauthToken); - } - @Override - public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); - } - - @Override - public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { - return (QueryDeployedModels) super.setQuotaUser(quotaUser); - } - - @Override - public QueryDeployedModels setUploadType(java.lang.String uploadType) { - return (QueryDeployedModels) super.setUploadType(uploadType); - } - - @Override - public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - @com.google.api.client.util.Key - private java.lang.String deploymentResourcePool; - - /** Required. The name of the target DeploymentResourcePool to query. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getDeploymentResourcePool() { - return deploymentResourcePool; - } + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), - "Parameter deploymentResourcePool must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; } - this.deploymentResourcePool = deploymentResourcePool; - return this; - } - - /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of DeployedModels to return. The service may return fewer than this value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. - */ - public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A page token, received from a previous `QueryDeployedModels` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryDeployedModels` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match - the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - /** - * A page token, received from a previous `QueryDeployedModels` call. Provide this to - * retrieve the subsequent page. When paginating, all other parameters provided to - * `QueryDeployedModels` must match the call that provided the page token. - */ - public QueryDeployedModels setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Optional. Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public QueryDeployedModels set(String parameterName, Object value) { - return (QueryDeployedModels) super.set(parameterName, value); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - } - - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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`.
+ * Updates a DatasetVersion.
*
- * Create a request for the method "operations.cancel".
+ * Create a request for the method "datasetVersions.patch".
*
* 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.
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource to be cancelled.
+ * @param name Output only. Identifier. The resource name of the DatasetVersion. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi
+ * on}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion}
* @return the request
*/
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
+ public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) throws java.io.IOException {
+ Patch result = new Patch(name, content);
initialize(result);
return result;
}
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#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. + * @param name Output only. Identifier. The resource name of the DatasetVersion. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion} * @since 1.13 */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DatasetVersion.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ + * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be cancelled. + /** Output only. Identifier. The resource name of the DatasetVersion. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{ + * project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public Patch 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } this.name = name; return this; } + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, + * see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, + * see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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`. + * Restores a dataset version. * - * Create a request for the method "operations.delete". + * Create a request for the method "datasetVersions.restore". * * 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. + * parameters, call the {@link Restore#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Restore restore(java.lang.String name) throws java.io.IOException { + Restore result = new Restore(name); initialize(result); return result; } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Restore#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. + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Restore(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } + + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } + + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } + + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } + + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } + + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } + + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } + + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } + + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } + + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } + + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the DatasetVersion resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public Restore 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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class 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 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;
+ }
+
+ public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @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; + } + + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/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); } @@ -63545,7 +61324,7 @@ 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -63579,7 +61358,7 @@ public class Get extends AiplatformRequest
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.EdgeDevices.List request = aiplatform.edgeDevices().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public EdgeDevices edgeDevices() {
- return new EdgeDevices();
- }
-
- /**
- * The "edgeDevices" collection of methods.
- */
- public class EdgeDevices {
-
/**
- * An accessor for creating requests from the Operations collection.
+ * An accessor for creating requests from the SavedQueries collection.
*
* The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ * {@code Aiplatform.SavedQueries.List request = aiplatform.savedQueries().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Operations operations() {
- return new Operations();
+ public SavedQueries savedQueries() {
+ return new SavedQueries();
}
/**
- * The "operations" collection of methods.
+ * The "savedQueries" collection of methods.
*/
- public class Operations {
+ public class SavedQueries {
/**
- * 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`.
+ * Deletes a SavedQuery.
*
- * Create a request for the method "operations.cancel".
+ * Create a request for the method "savedQueries.delete".
*
* 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.
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource to be cancelled.
+ * @param name Required. The resource name of the SavedQuery to delete. Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
* @return the request
*/
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
+ public Delete delete(java.lang.String name) throws java.io.IOException {
+ Delete result = new Delete(name);
initialize(result);
return result;
}
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 cancelled. + * @param name Required. The resource name of the SavedQuery to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` * @since 1.13 */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ + * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be cancelled. + /** Required. The resource name of the SavedQuery to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/ + * locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + */ + 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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`. + * Lists SavedQueries in a Dataset. * - * Create a request for the method "operations.delete". + * Create a request for the method "savedQueries.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name 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.v1beta1.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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @since 1.13 */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } } @@ -64656,24 +62138,31 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The resource name of the Dataset to list SavedQueries from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -64693,6 +62182,29 @@ public List setFilter(java.lang.String filter) { return this; } + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; @@ -64725,38 +62237,19 @@ public List setPageToken(java.lang.String 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. - */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private String readMask; - /** 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. + /** Mask specifying which fields to read. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getReadMask() { + return readMask; } - /** - * 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; + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; return this; } @@ -64765,1689 +62258,1686 @@ 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". + * 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 Wait#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 The name of the operation resource to wait on.
- * @return the request
+ * @return the resource collection
*/
- public Wait wait(java.lang.String name) throws java.io.IOException {
- Wait result = new Wait(name);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 wait on. - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - 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; + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - /** 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 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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) 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. + * 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 Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + public class Delete extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Endpoints.List request = aiplatform.endpoints().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Endpoints endpoints() {
- return new Endpoints();
- }
+ private static final String REST_PATH = "v1beta1/{+name}";
- /**
- * The "endpoints" collection of methods.
- */
- public class Endpoints {
+ private final java.util.regex.Pattern NAME_PATTERN =
+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$");
- /**
- * Return a list of tokens based on the input text.
- *
- * Create a request for the method "endpoints.computeTokens".
- *
- * This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link ComputeTokens#execute()} method to invoke the remote operation.
- *
- * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids.
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest}
- * @return the request
- */
- public ComputeTokens computeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) throws java.io.IOException {
- ComputeTokens result = new ComputeTokens(endpoint, content);
- initialize(result);
- return result;
- }
+ /**
+ * 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.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + } - public class ComputeTokens extends AiplatformRequest{@link ComputeTokens#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
- * - * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} - * @since 1.13 - */ - protected ComputeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensResponse.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/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public ComputeTokens set$Xgafv(java.lang.String $Xgafv) { - return (ComputeTokens) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public ComputeTokens setAccessToken(java.lang.String accessToken) { - return (ComputeTokens) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public ComputeTokens setAlt(java.lang.String alt) { - return (ComputeTokens) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public ComputeTokens setCallback(java.lang.String callback) { - return (ComputeTokens) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public ComputeTokens setFields(java.lang.String fields) { - return (ComputeTokens) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public ComputeTokens setKey(java.lang.String key) { - return (ComputeTokens) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public ComputeTokens setOauthToken(java.lang.String oauthToken) { - return (ComputeTokens) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public ComputeTokens setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ComputeTokens) 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 ComputeTokens setQuotaUser(java.lang.String quotaUser) { - return (ComputeTokens) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public ComputeTokens setUploadType(java.lang.String uploadType) { - return (ComputeTokens) 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 " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public ComputeTokens setUploadProtocol(java.lang.String uploadProtocol) { - return (ComputeTokens) 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; + } - /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + } - public class CountTokens extends AiplatformRequest{@link - * CountTokens#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 perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} - * @since 1.13 - */ - protected CountTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensResponse.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/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public CountTokens set$Xgafv(java.lang.String $Xgafv) { - return (CountTokens) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public CountTokens setAccessToken(java.lang.String accessToken) { - return (CountTokens) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public CountTokens setAlt(java.lang.String alt) { - return (CountTokens) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public CountTokens setCallback(java.lang.String callback) { - return (CountTokens) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public CountTokens setFields(java.lang.String fields) { - return (CountTokens) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public CountTokens setKey(java.lang.String key) { - return (CountTokens) super.setKey(key); - } - - @Override - public CountTokens setOauthToken(java.lang.String oauthToken) { - return (CountTokens) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public CountTokens setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CountTokens) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public CountTokens setQuotaUser(java.lang.String quotaUser) { - return (CountTokens) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public CountTokens setUploadType(java.lang.String uploadType) { - return (CountTokens) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public CountTokens setUploadProtocol(java.lang.String uploadProtocol) { - return (CountTokens) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - /** Required. The name of the Endpoint requested to perform token counting. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + /** 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public CountTokens 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/[^/]+/endpoints/[^/]+$"); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - this.endpoint = endpoint; - return this; - } - - @Override - public CountTokens set(String parameterName, Object value) { - return (CountTokens) super.set(parameterName, value); - } - } - /** - * Creates an Endpoint. - * - * Create a request for the method "endpoints.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 resource name of the Location to create the Endpoint in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the Location to create the Endpoint in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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/[^/]+$"); + /** + * 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; } - } - - @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); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); + } + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The resource name of the Location to create the Endpoint in. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The resource name of the Location to create the Endpoint in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The resource name of the Location to create the Endpoint in. Format: - * `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 List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Immutable. The ID to use for endpoint, which will become the final component of the - * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. - * If the first character is a letter, this value may be up to 63 characters, and valid - * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first - * character is a number, this value may be up to 9 characters, and valid characters are - * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a - * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields - * that are not included in either the URI or the body. - */ - @com.google.api.client.util.Key - private java.lang.String endpointId; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Immutable. The ID to use for endpoint, which will become the final component of the endpoint - resource name. If not provided, Vertex AI will generate a value for this ID. If the first character - is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last - character must be a letter or number. If the first character is a number, this value may be up to 9 - characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this - field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the - fallback for fields that are not included in either the URI or the body. - */ - public java.lang.String getEndpointId() { - return endpointId; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Immutable. The ID to use for endpoint, which will become the final component of the - * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. - * If the first character is a letter, this value may be up to 63 characters, and valid - * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first - * character is a number, this value may be up to 9 characters, and valid characters are - * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a - * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields - * that are not included in either the URI or the body. - */ - public Create setEndpointId(java.lang.String endpointId) { - this.endpointId = endpointId; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @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 List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+$"); - } - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** + * 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; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** 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; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; + } - /** - * Required. The name of the Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @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; + } - /** Required. The name of the Endpoint resource to be deleted. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getName() { - return name; - } + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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); + } } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); } } + } + /** + * An accessor for creating requests from the DeploymentResourcePools collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.DeploymentResourcePools.List request = aiplatform.deploymentResourcePools().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public DeploymentResourcePools deploymentResourcePools() {
+ return new DeploymentResourcePools();
+ }
+
+ /**
+ * The "deploymentResourcePools" collection of methods.
+ */
+ public class DeploymentResourcePools {
+
/**
- * Deploys a Model into this Endpoint, creating a DeployedModel within it.
+ * Create a DeploymentResourcePool.
*
- * Create a request for the method "endpoints.deployModel".
+ * Create a request for the method "deploymentResourcePools.create".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link DeployModel#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format:
- * `projects/{project}/locations/{location}/endpoints/{endpoint}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest}
+ * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format:
+ * `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest}
* @return the request
*/
- public DeployModel deployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) throws java.io.IOException {
- DeployModel result = new DeployModel(endpoint, content);
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class DeployModel extends AiplatformRequest{@link - * DeployModel#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 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 endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @param parent Required. The parent location resource where this DeploymentResourcePool will be created. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest} * @since 1.13 */ - protected DeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public DeployModel set$Xgafv(java.lang.String $Xgafv) { - return (DeployModel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public DeployModel setAccessToken(java.lang.String accessToken) { - return (DeployModel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public DeployModel setAlt(java.lang.String alt) { - return (DeployModel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public DeployModel setCallback(java.lang.String callback) { - return (DeployModel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public DeployModel setFields(java.lang.String fields) { - return (DeployModel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public DeployModel setKey(java.lang.String key) { - return (DeployModel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public DeployModel setOauthToken(java.lang.String oauthToken) { - return (DeployModel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public DeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeployModel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public DeployModel setQuotaUser(java.lang.String quotaUser) { - return (DeployModel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public DeployModel setUploadType(java.lang.String uploadType) { - return (DeployModel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public DeployModel setUploadProtocol(java.lang.String uploadProtocol) { - return (DeployModel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint resource into which to deploy a Model. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: `projects/{project}/locations/{location}` */ - public DeployModel setEndpoint(java.lang.String endpoint) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + this.parent = parent; return this; } @Override - public DeployModel set(String parameterName, Object value) { - return (DeployModel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Perform an unary online prediction request to a gRPC model server for Vertex first-party products - * and frameworks. + * Delete a DeploymentResourcePool. * - * Create a request for the method "endpoints.directPredict". + * Create a request for the method "deploymentResourcePools.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DirectPredict#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public DirectPredict directPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) throws java.io.IOException { - DirectPredict result = new DirectPredict(endpoint, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class DirectPredict extends AiplatformRequest{@link DirectPredict#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * 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 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.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected DirectPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public DirectPredict set$Xgafv(java.lang.String $Xgafv) { - return (DirectPredict) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DirectPredict setAccessToken(java.lang.String accessToken) { - return (DirectPredict) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DirectPredict setAlt(java.lang.String alt) { - return (DirectPredict) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DirectPredict setCallback(java.lang.String callback) { - return (DirectPredict) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DirectPredict setFields(java.lang.String fields) { - return (DirectPredict) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DirectPredict setKey(java.lang.String key) { - return (DirectPredict) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DirectPredict setOauthToken(java.lang.String oauthToken) { - return (DirectPredict) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DirectPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectPredict) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DirectPredict setQuotaUser(java.lang.String quotaUser) { - return (DirectPredict) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DirectPredict setUploadType(java.lang.String uploadType) { - return (DirectPredict) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DirectPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectPredict) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the DeploymentResourcePool to delete. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public DirectPredict setEndpoint(java.lang.String endpoint) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + this.name = name; return this; } @Override - public DirectPredict set(String parameterName, Object value) { - return (DirectPredict) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Perform an unary online prediction request to a gRPC model server for custom containers. + * Get a DeploymentResourcePool. * - * Create a request for the method "endpoints.directRawPredict". + * Create a request for the method "deploymentResourcePools.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DirectRawPredict#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public DirectRawPredict directRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) throws java.io.IOException { - DirectRawPredict result = new DirectRawPredict(endpoint, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class DirectRawPredict extends AiplatformRequest{@link DirectRawPredict#initialize(com.google.api.client.googleapis.services.Abs - * tractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * 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 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.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected DirectRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool.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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public DirectRawPredict set$Xgafv(java.lang.String $Xgafv) { - return (DirectRawPredict) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DirectRawPredict setAccessToken(java.lang.String accessToken) { - return (DirectRawPredict) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DirectRawPredict setAlt(java.lang.String alt) { - return (DirectRawPredict) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public DirectRawPredict setCallback(java.lang.String callback) { - return (DirectRawPredict) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public DirectRawPredict setFields(java.lang.String fields) { - return (DirectRawPredict) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public DirectRawPredict setKey(java.lang.String key) { - return (DirectRawPredict) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public DirectRawPredict setOauthToken(java.lang.String oauthToken) { - return (DirectRawPredict) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public DirectRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectRawPredict) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public DirectRawPredict setQuotaUser(java.lang.String quotaUser) { - return (DirectRawPredict) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public DirectRawPredict setUploadType(java.lang.String uploadType) { - return (DirectRawPredict) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public DirectRawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectRawPredict) super.setUploadProtocol(uploadProtocol); + 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 Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the DeploymentResourcePool to retrieve. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public DirectRawPredict setEndpoint(java.lang.String endpoint) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + this.name = name; return this; } @Override - public DirectRawPredict set(String parameterName, Object value) { - return (DirectRawPredict) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel - * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels - * must have explanation_spec populated. + * List DeploymentResourcePools in a location. * - * Create a request for the method "endpoints.explain". + * Create a request for the method "deploymentResourcePools.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Explain#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` * @return the request */ - public Explain explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) throws java.io.IOException { - Explain result = new Explain(endpoint, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Explain extends AiplatformRequest{@link - * Explain#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 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 endpoint Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ - protected Explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Explain set$Xgafv(java.lang.String $Xgafv) { - return (Explain) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Explain setAccessToken(java.lang.String accessToken) { - return (Explain) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Explain setAlt(java.lang.String alt) { - return (Explain) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Explain setCallback(java.lang.String callback) { - return (Explain) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Explain setFields(java.lang.String fields) { - return (Explain) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Explain setKey(java.lang.String key) { - return (Explain) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Explain setOauthToken(java.lang.String oauthToken) { - return (Explain) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Explain setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Explain) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Explain setQuotaUser(java.lang.String quotaUser) { - return (Explain) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Explain setUploadType(java.lang.String uploadType) { - return (Explain) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Explain setUploadProtocol(java.lang.String uploadProtocol) { - return (Explain) super.setUploadProtocol(uploadProtocol); + 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); } /** - * Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent Location which owns this collection of DeploymentResourcePools. + * Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint requested to serve the explanation. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent Location which owns this collection of DeploymentResourcePools. + * Format: `projects/{project}/locations/{location}` */ - public Explain setEndpoint(java.lang.String endpoint) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + this.parent = parent; + return this; + } + + /** + * The maximum number of DeploymentResourcePools to return. The service may return fewer + * than this value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this + value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of DeploymentResourcePools to return. The service may return fewer + * than this value. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeploymentResourcePools` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to + `ListDeploymentResourcePools` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous `ListDeploymentResourcePools` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeploymentResourcePools` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Explain set(String parameterName, Object value) { - return (Explain) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Fetch an asynchronous online prediction operation. + * Update a DeploymentResourcePool. * - * Create a request for the method "endpoints.fetchPredictOperation". + * Create a request for the method "deploymentResourcePools.patch". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link FetchPredictOperation#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#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}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @param name Immutable. The resource name of the DeploymentResourcePool. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} * @return the request */ - public FetchPredictOperation fetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) throws java.io.IOException { - FetchPredictOperation result = new FetchPredictOperation(endpoint, content); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class FetchPredictOperation extends AiplatformRequest{@link FetchPredictOperation#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 Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#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}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @param name Immutable. The resource name of the DeploymentResourcePool. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool} * @since 1.13 */ - protected FetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public FetchPredictOperation set$Xgafv(java.lang.String $Xgafv) { - return (FetchPredictOperation) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public FetchPredictOperation setAccessToken(java.lang.String accessToken) { - return (FetchPredictOperation) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public FetchPredictOperation setAlt(java.lang.String alt) { - return (FetchPredictOperation) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public FetchPredictOperation setCallback(java.lang.String callback) { - return (FetchPredictOperation) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public FetchPredictOperation setFields(java.lang.String fields) { - return (FetchPredictOperation) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public FetchPredictOperation setKey(java.lang.String key) { - return (FetchPredictOperation) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public FetchPredictOperation setOauthToken(java.lang.String oauthToken) { - return (FetchPredictOperation) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public FetchPredictOperation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchPredictOperation) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public FetchPredictOperation setQuotaUser(java.lang.String quotaUser) { - return (FetchPredictOperation) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public FetchPredictOperation setUploadType(java.lang.String uploadType) { - return (FetchPredictOperation) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public FetchPredictOperation setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchPredictOperation) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /** Immutable. The resource name of the DeploymentResourcePool. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public FetchPredictOperation setEndpoint(java.lang.String endpoint) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + this.name = name; + return this; + } + + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public FetchPredictOperation set(String parameterName, Object value) { - return (FetchPredictOperation) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Generate content with multimodal inputs. + * List DeployedModels that have been deployed on this DeploymentResourcePool. * - * Create a request for the method "endpoints.generateContent". + * Create a request for the method "deploymentResourcePools.queryDeployedModels". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link GenerateContent#execute()} method to invoke the remote operation. + * parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote operation. * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public GenerateContent generateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { - GenerateContent result = new GenerateContent(model, content); + public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { + QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); initialize(result); return result; } - public class GenerateContent extends AiplatformRequest{@link GenerateContent#initialize(com.google.api.client.googleapis.services.Abst - * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote + * operation.{@link QueryDeployedModels#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected GenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); - this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); + protected QueryDeployedModels(java.lang.String deploymentResourcePool) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.class); + this.deploymentResourcePool = com.google.api.client.util.Preconditions.checkNotNull(deploymentResourcePool, "Required parameter deploymentResourcePool must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public GenerateContent set$Xgafv(java.lang.String $Xgafv) { - return (GenerateContent) super.set$Xgafv($Xgafv); - } - - @Override - public GenerateContent setAccessToken(java.lang.String accessToken) { - return (GenerateContent) super.setAccessToken(accessToken); - } - - @Override - public GenerateContent setAlt(java.lang.String alt) { - return (GenerateContent) super.setAlt(alt); - } - - @Override - public GenerateContent setCallback(java.lang.String callback) { - return (GenerateContent) super.setCallback(callback); - } - - @Override - public GenerateContent setFields(java.lang.String fields) { - return (GenerateContent) super.setFields(fields); - } - - @Override - public GenerateContent setKey(java.lang.String key) { - return (GenerateContent) super.setKey(key); - } - - @Override - public GenerateContent setOauthToken(java.lang.String oauthToken) { - return (GenerateContent) super.setOauthToken(oauthToken); - } - - @Override - public GenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GenerateContent) super.setPrettyPrint(prettyPrint); - } - - @Override - public GenerateContent setQuotaUser(java.lang.String quotaUser) { - return (GenerateContent) super.setQuotaUser(quotaUser); - } - - @Override - public GenerateContent setUploadType(java.lang.String uploadType) { - return (GenerateContent) super.setUploadType(uploadType); - } - - @Override - public GenerateContent setUploadProtocol(java.lang.String uploadProtocol) { - return (GenerateContent) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String model; - - /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getModel() { - return model; - } - - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public GenerateContent setModel(java.lang.String model) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.model = model; - return this; - } - - @Override - public GenerateContent set(String parameterName, Object value) { - return (GenerateContent) super.set(parameterName, value); - } - } - /** - * Gets an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), + "Parameter deploymentResourcePool must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @@ -66462,1745 +63952,1876 @@ 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 QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { + return (QueryDeployedModels) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public QueryDeployedModels setAccessToken(java.lang.String accessToken) { + return (QueryDeployedModels) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public QueryDeployedModels setAlt(java.lang.String alt) { + return (QueryDeployedModels) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public QueryDeployedModels setCallback(java.lang.String callback) { + return (QueryDeployedModels) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public QueryDeployedModels setFields(java.lang.String fields) { + return (QueryDeployedModels) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public QueryDeployedModels setKey(java.lang.String key) { + return (QueryDeployedModels) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { + return (QueryDeployedModels) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { + return (QueryDeployedModels) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public QueryDeployedModels setUploadType(java.lang.String uploadType) { + return (QueryDeployedModels) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr + * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String deploymentResourcePool; - /** Required. The name of the Endpoint resource. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the target DeploymentResourcePool to query. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getName() { - return name; + public java.lang.String getDeploymentResourcePool() { + return deploymentResourcePool; } /** - * Required. The name of the Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr + * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public Get setName(java.lang.String name) { + public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), + "Parameter deploymentResourcePool must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.name = name; + this.deploymentResourcePool = deploymentResourcePool; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "endpoints.getIamPolicy". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends AiplatformRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Integer pageSize; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** The maximum number of DeployedModels to return. The service may return fewer than this value. */ - public java.lang.String getResource() { - return resource; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.resource = resource; + public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * A page token, received from a previous `QueryDeployedModels` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `QueryDeployedModels` must match the call that provided the page token. */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + /** A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match + the call that provided the page token. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getPageToken() { + return pageToken; } /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * A page token, received from a previous `QueryDeployedModels` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `QueryDeployedModels` must match the call that provided the page token. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public QueryDeployedModels setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public QueryDeployedModels set(String parameterName, Object value) { + return (QueryDeployedModels) super.set(parameterName, value); } } + /** - * Lists Endpoints in a Location. - * - * Create a request for the method "endpoints.list". + * 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 List#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 resource name of the Location from which to list the Endpoints. Format:
- * `projects/{project}/locations/{location}`
- * @return the request
+ * @return the resource collection
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 resource name of the Location from which to list the Endpoints. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEndpointsResponse.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 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); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - /** - * Required. The resource name of the Location from which to list the Endpoints. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** Required. The resource name of the Location from which to list the Endpoints. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The resource name of the Location from which to list the Endpoints. Format: - * `projects/{project}/locations/{location}` - */ - public List 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 setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` - * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * - * `display_name` supports `=` and `!=`. * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key - * existence * A key including a space must be quoted. `labels."a key"`. * - * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - /** Optional. An expression for filtering the results of the request. For field names both snake_case - and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint - ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports `=` and `!=`. - * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * - `labels.key:*` or `labels:key` - key existence * A key including a space must be quoted. `labels."a - key"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` - * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * - * `display_name` supports `=` and `!=`. * `labels` supports general map functions that - * is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key - * existence * A key including a space must be quoted. `labels."a key"`. * - * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. Configures the Google Distributed Cloud (GDC) environment for online - * prediction. Only set this field when the Endpoint is to be deployed in a GDC - * environment. - */ - @com.google.api.client.util.Key - private java.lang.String gdcZone; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - /** Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set - this field when the Endpoint is to be deployed in a GDC environment. - */ - public java.lang.String getGdcZone() { - return gdcZone; - } + /** 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Optional. Configures the Google Distributed Cloud (GDC) environment for online - * prediction. Only set this field when the Endpoint is to be deployed in a GDC - * environment. + * 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 List setGdcZone(java.lang.String gdcZone) { - this.gdcZone = gdcZone; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + } - /** Optional. The standard list page token. Typically obtained via - ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * Optional. The standard list page token. Typically obtained via - * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints - * call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** Optional. Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** Optional. Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** Optional. Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing deployed model. Updatable fields include `min_replica_count`, - * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, - * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). - * - * Create a request for the method "endpoints.mutateDeployedModel". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link MutateDeployedModel#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} - * @return the request - */ - public MutateDeployedModel mutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) throws java.io.IOException { - MutateDeployedModel result = new MutateDeployedModel(endpoint, content); - initialize(result); - return result; - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - public class MutateDeployedModel extends AiplatformRequest{@link MutateDeployedModel#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 Get#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected MutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public MutateDeployedModel set$Xgafv(java.lang.String $Xgafv) { - return (MutateDeployedModel) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + } - @Override - public MutateDeployedModel setFields(java.lang.String fields) { - return (MutateDeployedModel) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public MutateDeployedModel setKey(java.lang.String key) { - return (MutateDeployedModel) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public MutateDeployedModel setOauthToken(java.lang.String oauthToken) { - return (MutateDeployedModel) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public MutateDeployedModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutateDeployedModel) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public MutateDeployedModel setQuotaUser(java.lang.String quotaUser) { - return (MutateDeployedModel) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public MutateDeployedModel setUploadType(java.lang.String uploadType) { - return (MutateDeployedModel) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public MutateDeployedModel setUploadProtocol(java.lang.String uploadProtocol) { - return (MutateDeployedModel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the Endpoint resource into which to mutate a DeployedModel. - * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Endpoint resource into which to mutate a DeployedModel. - * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public MutateDeployedModel 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/[^/]+/endpoints/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.endpoint = endpoint; - return this; - } - @Override - public MutateDeployedModel set(String parameterName, Object value) { - return (MutateDeployedModel) super.set(parameterName, value); - } - } - /** - * Updates an Endpoint. - * - * Create a request for the method "endpoints.patch". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Patch extends AiplatformRequest{@link - * Patch#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 List#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Identifier. The resource name of the Endpoint. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Identifier. The resource name of the Endpoint. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Identifier. The resource name of the Endpoint. */ - public Patch 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/[^/]+/endpoints/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. - */ - public String getUpdateMask() { - return updateMask; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Create a request for the method "endpoints.predict". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Predict#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.GoogleCloudAiplatformV1beta1PredictRequest} - * @return the request - */ - public Predict predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) throws java.io.IOException { - Predict result = new Predict(endpoint, content); - initialize(result); - return result; - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Predict extends AiplatformRequest{@link - * Predict#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.GoogleCloudAiplatformV1beta1PredictRequest} - * @since 1.13 - */ - protected Predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictResponse.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/[^/]+/endpoints/[^/]+$"); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - } - @Override - public Predict set$Xgafv(java.lang.String $Xgafv) { - return (Predict) super.set$Xgafv($Xgafv); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Predict setAccessToken(java.lang.String accessToken) { - return (Predict) super.setAccessToken(accessToken); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Predict setAlt(java.lang.String alt) { - return (Predict) super.setAlt(alt); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Predict setCallback(java.lang.String callback) { - return (Predict) super.setCallback(callback); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Predict setFields(java.lang.String fields) { - return (Predict) super.setFields(fields); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Predict setKey(java.lang.String key) { - return (Predict) super.setKey(key); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Predict setOauthToken(java.lang.String oauthToken) { - return (Predict) super.setOauthToken(oauthToken); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Predict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Predict) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public Predict setQuotaUser(java.lang.String quotaUser) { - return (Predict) super.setQuotaUser(quotaUser); - } + /** 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; + } - @Override - public Predict setUploadType(java.lang.String uploadType) { - return (Predict) super.setUploadType(uploadType); - } + /** + * 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 Predict setUploadProtocol(java.lang.String uploadProtocol) { - return (Predict) super.setUploadProtocol(uploadProtocol); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - /** - * 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}` + * 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 java.lang.String getEndpoint() { - return endpoint; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Predict 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/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - /** - * Create a request for the method "endpoints.predictLongRunning". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link PredictLongRunning#execute()} method to invoke the remote - * operation.{@link PredictLongRunning#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} 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}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} - * @since 1.13 - */ - protected PredictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } - } - @Override - public PredictLongRunning set$Xgafv(java.lang.String $Xgafv) { - return (PredictLongRunning) super.set$Xgafv($Xgafv); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public PredictLongRunning setAccessToken(java.lang.String accessToken) { - return (PredictLongRunning) super.setAccessToken(accessToken); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public PredictLongRunning setAlt(java.lang.String alt) { - return (PredictLongRunning) super.setAlt(alt); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public PredictLongRunning setCallback(java.lang.String callback) { - return (PredictLongRunning) super.setCallback(callback); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public PredictLongRunning setFields(java.lang.String fields) { - return (PredictLongRunning) super.setFields(fields); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public PredictLongRunning setKey(java.lang.String key) { - return (PredictLongRunning) super.setKey(key); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public PredictLongRunning setOauthToken(java.lang.String oauthToken) { - return (PredictLongRunning) super.setOauthToken(oauthToken); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public PredictLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PredictLongRunning) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public PredictLongRunning setQuotaUser(java.lang.String quotaUser) { - return (PredictLongRunning) super.setQuotaUser(quotaUser); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public PredictLongRunning setUploadType(java.lang.String uploadType) { - return (PredictLongRunning) super.setUploadType(uploadType); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public PredictLongRunning setUploadProtocol(java.lang.String uploadProtocol) { - return (PredictLongRunning) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + /** + * 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; - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public PredictLongRunning 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/[^/]+/endpoints/[^/]+$"); + /** 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; } - this.endpoint = endpoint; - return this; - } - @Override - public PredictLongRunning set(String parameterName, Object value) { - return (PredictLongRunning) 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 EdgeDevices collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.EdgeDevices.List request = aiplatform.edgeDevices().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public EdgeDevices edgeDevices() {
+ return new EdgeDevices();
+ }
+
+ /**
+ * The "edgeDevices" collection of methods.
+ */
+ public class EdgeDevices {
+
/**
- * Perform an online prediction with an arbitrary HTTP payload. The response includes the following
- * HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. *
- * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.
- *
- * Create a request for the method "endpoints.rawPredict".
+ * 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 RawPredict#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 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.GoogleCloudAiplatformV1beta1RawPredictRequest}
- * @return the request
+ * @return the resource collection
*/
- public RawPredict rawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) throws java.io.IOException {
- RawPredict result = new RawPredict(endpoint, content);
- initialize(result);
- return result;
+ public Operations operations() {
+ return new Operations();
}
- public class RawPredict extends AiplatformRequest{@link - * RawPredict#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 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.GoogleCloudAiplatformV1beta1RawPredictRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected RawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest 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/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public RawPredict set$Xgafv(java.lang.String $Xgafv) { - return (RawPredict) super.set$Xgafv($Xgafv); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public RawPredict setAccessToken(java.lang.String accessToken) { - return (RawPredict) super.setAccessToken(accessToken); - } + public class Cancel extends AiplatformRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public RawPredict setKey(java.lang.String key) { - return (RawPredict) super.setKey(key); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public RawPredict setOauthToken(java.lang.String oauthToken) { - return (RawPredict) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public RawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RawPredict) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public RawPredict setQuotaUser(java.lang.String quotaUser) { - return (RawPredict) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public RawPredict setUploadType(java.lang.String uploadType) { - return (RawPredict) super.setUploadType(uploadType); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public RawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (RawPredict) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - /** - * 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; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** 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; - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public RawPredict 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/[^/]+/endpoints/[^/]+$"); + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } - this.endpoint = endpoint; - return this; - } - @Override - public RawPredict set(String parameterName, Object value) { - return (RawPredict) super.set(parameterName, value); - } - } - /** - * Perform a server-side streaming online prediction request for Vertex LLM streaming. - * - * Create a request for the method "endpoints.serverStreamingPredict". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ServerStreamingPredict#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.GoogleCloudAiplatformV1beta1StreamingPredictRequest} - * @return the request - */ - public ServerStreamingPredict serverStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) throws java.io.IOException { - ServerStreamingPredict result = new ServerStreamingPredict(endpoint, content); - initialize(result); - return result; - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - public class ServerStreamingPredict extends AiplatformRequest{@link ServerStreamingPredict#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 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.GoogleCloudAiplatformV1beta1StreamingPredictRequest} - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected ServerStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictResponse.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/[^/]+/endpoints/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public ServerStreamingPredict set$Xgafv(java.lang.String $Xgafv) { - return (ServerStreamingPredict) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public ServerStreamingPredict setFields(java.lang.String fields) { - return (ServerStreamingPredict) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public ServerStreamingPredict setKey(java.lang.String key) { - return (ServerStreamingPredict) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public ServerStreamingPredict setOauthToken(java.lang.String oauthToken) { - return (ServerStreamingPredict) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public ServerStreamingPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ServerStreamingPredict) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public ServerStreamingPredict setQuotaUser(java.lang.String quotaUser) { - return (ServerStreamingPredict) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public ServerStreamingPredict setUploadType(java.lang.String uploadType) { - return (ServerStreamingPredict) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public ServerStreamingPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (ServerStreamingPredict) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** 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; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public ServerStreamingPredict 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/[^/]+/endpoints/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.endpoint = endpoint; - return this; - } - @Override - public ServerStreamingPredict set(String parameterName, Object value) { - return (ServerStreamingPredict) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * Create a request for the method "endpoints.setIamPolicy". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class SetIamPolicy extends AiplatformRequest{@link - * SetIamPolicy#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 Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Generate content with multimodal inputs with streaming support. - * - * Create a request for the method "endpoints.streamGenerateContent". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link StreamGenerateContent#execute()} method to invoke the remote - * operation. - * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} - * @return the request - */ - public StreamGenerateContent streamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { - StreamGenerateContent result = new StreamGenerateContent(model, content); - initialize(result); - return result; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class StreamGenerateContent extends AiplatformRequest{@link StreamGenerateContent#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 List#execute()} method to invoke the remote operation. * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected StreamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); - this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public StreamGenerateContent set$Xgafv(java.lang.String $Xgafv) { - return (StreamGenerateContent) super.set$Xgafv($Xgafv); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public StreamGenerateContent setAccessToken(java.lang.String accessToken) { - return (StreamGenerateContent) super.setAccessToken(accessToken); - } + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+$"); + } + } - @Override - public StreamGenerateContent setKey(java.lang.String key) { - return (StreamGenerateContent) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public StreamGenerateContent setOauthToken(java.lang.String oauthToken) { - return (StreamGenerateContent) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public StreamGenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamGenerateContent) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public StreamGenerateContent setQuotaUser(java.lang.String quotaUser) { - return (StreamGenerateContent) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public StreamGenerateContent setUploadType(java.lang.String uploadType) { - return (StreamGenerateContent) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public StreamGenerateContent setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamGenerateContent) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String model; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getModel() { - return model; - } + @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/[^/]+/edgeDevices/[^/]+$"); + } + 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); + } + } /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 StreamGenerateContent setModel(java.lang.String model) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.model = model; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public StreamGenerateContent set(String parameterName, Object value) { - return (StreamGenerateContent) super.set(parameterName, value); + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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 Endpoints collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Endpoints.List request = aiplatform.endpoints().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Endpoints endpoints() {
+ return new Endpoints();
+ }
+
+ /**
+ * The "endpoints" collection of methods.
+ */
+ public class Endpoints {
+
/**
- * Perform a streaming online prediction with an arbitrary HTTP payload.
+ * Return a list of tokens based on the input text.
*
- * Create a request for the method "endpoints.streamRawPredict".
+ * Create a request for the method "endpoints.computeTokens".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link StreamRawPredict#execute()} method to invoke the remote operation.
+ * parameters, call the {@link ComputeTokens#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}` or
- * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest}
+ * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids.
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest}
* @return the request
*/
- public StreamRawPredict streamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) throws java.io.IOException {
- StreamRawPredict result = new StreamRawPredict(endpoint, content);
+ public ComputeTokens computeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) throws java.io.IOException {
+ ComputeTokens result = new ComputeTokens(endpoint, content);
initialize(result);
return result;
}
- public class StreamRawPredict extends AiplatformRequest{@link StreamRawPredict#initialize(com.google.api.client.googleapis.services.Abs - * tractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link ComputeTokens#execute()} method to invoke the remote + * operation.{@link ComputeTokens#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} 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}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} + * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} * @since 1.13 */ - protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + protected ComputeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensResponse.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(), @@ -68210,82 +65831,72 @@ protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.ai } @Override - public StreamRawPredict set$Xgafv(java.lang.String $Xgafv) { - return (StreamRawPredict) super.set$Xgafv($Xgafv); + public ComputeTokens set$Xgafv(java.lang.String $Xgafv) { + return (ComputeTokens) super.set$Xgafv($Xgafv); } @Override - public StreamRawPredict setAccessToken(java.lang.String accessToken) { - return (StreamRawPredict) super.setAccessToken(accessToken); + public ComputeTokens setAccessToken(java.lang.String accessToken) { + return (ComputeTokens) super.setAccessToken(accessToken); } @Override - public StreamRawPredict setAlt(java.lang.String alt) { - return (StreamRawPredict) super.setAlt(alt); + public ComputeTokens setAlt(java.lang.String alt) { + return (ComputeTokens) super.setAlt(alt); } @Override - public StreamRawPredict setCallback(java.lang.String callback) { - return (StreamRawPredict) super.setCallback(callback); + public ComputeTokens setCallback(java.lang.String callback) { + return (ComputeTokens) super.setCallback(callback); } @Override - public StreamRawPredict setFields(java.lang.String fields) { - return (StreamRawPredict) super.setFields(fields); + public ComputeTokens setFields(java.lang.String fields) { + return (ComputeTokens) super.setFields(fields); } @Override - public StreamRawPredict setKey(java.lang.String key) { - return (StreamRawPredict) super.setKey(key); + public ComputeTokens setKey(java.lang.String key) { + return (ComputeTokens) super.setKey(key); } @Override - public StreamRawPredict setOauthToken(java.lang.String oauthToken) { - return (StreamRawPredict) super.setOauthToken(oauthToken); + public ComputeTokens setOauthToken(java.lang.String oauthToken) { + return (ComputeTokens) super.setOauthToken(oauthToken); } @Override - public StreamRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamRawPredict) super.setPrettyPrint(prettyPrint); + public ComputeTokens setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ComputeTokens) super.setPrettyPrint(prettyPrint); } @Override - public StreamRawPredict setQuotaUser(java.lang.String quotaUser) { - return (StreamRawPredict) super.setQuotaUser(quotaUser); + public ComputeTokens setQuotaUser(java.lang.String quotaUser) { + return (ComputeTokens) super.setQuotaUser(quotaUser); } @Override - public StreamRawPredict setUploadType(java.lang.String uploadType) { - return (StreamRawPredict) super.setUploadType(uploadType); + public ComputeTokens setUploadType(java.lang.String uploadType) { + return (ComputeTokens) super.setUploadType(uploadType); } @Override - public StreamRawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamRawPredict) super.setUploadProtocol(uploadProtocol); + public ComputeTokens setUploadProtocol(java.lang.String uploadProtocol) { + return (ComputeTokens) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ @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}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ 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}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public StreamRawPredict setEndpoint(java.lang.String endpoint) { + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ + public ComputeTokens 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 " + @@ -68296,369 +65907,372 @@ public StreamRawPredict setEndpoint(java.lang.String endpoint) { } @Override - public StreamRawPredict set(String parameterName, Object value) { - return (StreamRawPredict) super.set(parameterName, value); + public ComputeTokens set(String parameterName, Object value) { + return (ComputeTokens) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Perform a token counting. * - * Create a request for the method "endpoints.testIamPermissions". + * Create a request for the method "endpoints.countTokens". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link CountTokens#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); + public CountTokens countTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) throws java.io.IOException { + CountTokens result = new CountTokens(endpoint, content); initialize(result); return result; } - public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link CountTokens#execute()} method to invoke the remote + * operation.{@link + * CountTokens#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected CountTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensResponse.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public CountTokens set$Xgafv(java.lang.String $Xgafv) { + return (CountTokens) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public CountTokens setAccessToken(java.lang.String accessToken) { + return (CountTokens) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public CountTokens setAlt(java.lang.String alt) { + return (CountTokens) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public CountTokens setCallback(java.lang.String callback) { + return (CountTokens) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public CountTokens setFields(java.lang.String fields) { + return (CountTokens) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public CountTokens setKey(java.lang.String key) { + return (CountTokens) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public CountTokens setOauthToken(java.lang.String oauthToken) { + return (CountTokens) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public CountTokens setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CountTokens) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public CountTokens setQuotaUser(java.lang.String quotaUser) { + return (CountTokens) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public CountTokens setUploadType(java.lang.String uploadType) { + return (CountTokens) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public CountTokens setUploadProtocol(java.lang.String uploadProtocol) { + return (CountTokens) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String endpoint; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the Endpoint requested to perform token counting. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getEndpoint() { + return endpoint; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public CountTokens setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.resource = resource; - return this; - } - - /** - * The set of permissions to check for the `resource`. Permissions with wildcards (such as - * `*` or `storage.*`) are not allowed. For more information see [IAM - * Overview](https://cloud.google.com/iam/docs/overview#permissions). - */ - @com.google.api.client.util.Key - private java.util.List{@link UndeployModel#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * 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 endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest} + * @param parent Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} * @since 1.13 */ - protected UndeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public UndeployModel set$Xgafv(java.lang.String $Xgafv) { - return (UndeployModel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public UndeployModel setAccessToken(java.lang.String accessToken) { - return (UndeployModel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public UndeployModel setAlt(java.lang.String alt) { - return (UndeployModel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public UndeployModel setCallback(java.lang.String callback) { - return (UndeployModel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public UndeployModel setFields(java.lang.String fields) { - return (UndeployModel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public UndeployModel setKey(java.lang.String key) { - return (UndeployModel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public UndeployModel setOauthToken(java.lang.String oauthToken) { - return (UndeployModel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public UndeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UndeployModel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public UndeployModel setQuotaUser(java.lang.String quotaUser) { - return (UndeployModel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public UndeployModel setUploadType(java.lang.String uploadType) { - return (UndeployModel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public UndeployModel setUploadProtocol(java.lang.String uploadProtocol) { - return (UndeployModel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint resource from which to undeploy a Model. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The resource name of the Location to create the Endpoint in. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` */ - public UndeployModel setEndpoint(java.lang.String endpoint) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + this.parent = parent; + return this; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final component of the + * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, and valid + * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first + * character is a number, this value may be up to 9 characters, and valid characters are + * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a + * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields + * that are not included in either the URI or the body. + */ + @com.google.api.client.util.Key + private java.lang.String endpointId; + + /** Immutable. The ID to use for endpoint, which will become the final component of the endpoint + resource name. If not provided, Vertex AI will generate a value for this ID. If the first character + is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last + character must be a letter or number. If the first character is a number, this value may be up to 9 + characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this + field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the + fallback for fields that are not included in either the URI or the body. + */ + public java.lang.String getEndpointId() { + return endpointId; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final component of the + * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, and valid + * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first + * character is a number, this value may be up to 9 characters, and valid characters are + * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a + * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields + * that are not included in either the URI or the body. + */ + public Create setEndpointId(java.lang.String endpointId) { + this.endpointId = endpointId; return this; } @Override - public UndeployModel set(String parameterName, Object value) { - return (UndeployModel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Updates an Endpoint with a long running operation. + * Deletes an Endpoint. * - * Create a request for the method "endpoints.update". + * Create a request for the method "endpoints.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @param name Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @return the request */ - public Update update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest content) throws java.io.IOException { - Update result = new Update(name, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Update extends AiplatformRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @param name Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @since 1.13 */ - protected Update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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(), @@ -68668,72 +66282,79 @@ protected Update(java.lang.String name, com.google.api.services.aiplatform.v1bet } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Identifier. The resource name of the Endpoint. */ + /** + * Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The resource name of the Endpoint. + /** Required. The name of the Endpoint resource to be deleted. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ public java.lang.String getName() { return name; } - /** Identifier. The resource name of the Endpoint. */ - public Update setName(java.lang.String name) { + /** + * Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + 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 " + @@ -68744,5862 +66365,5340 @@ public Update setName(java.lang.String name) { } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Chat collection. + * Deploys a Model into this Endpoint, creating a DeployedModel within it. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Chat.List request = aiplatform.chat().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.deployModel".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link DeployModel#execute()} method to invoke the remote operation.
+ *
+ * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest}
+ * @return the request
*/
- public Chat chat() {
- return new Chat();
+ public DeployModel deployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) throws java.io.IOException {
+ DeployModel result = new DeployModel(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "chat" collection of methods.
- */
- public class Chat {
+ public class DeployModel extends AiplatformRequest{@link + * DeployModel#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} - * @return the request + * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @since 1.13 */ - public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Completions result = new Completions(endpoint, content); - initialize(result); - return result; - } - - public class Completions extends AiplatformRequest{@link - * Completions#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 Completions(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/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public Completions set$Xgafv(java.lang.String $Xgafv) { - return (Completions) super.set$Xgafv($Xgafv); + protected DeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); } + } - @Override - public Completions setAccessToken(java.lang.String accessToken) { - return (Completions) super.setAccessToken(accessToken); - } + @Override + public DeployModel set$Xgafv(java.lang.String $Xgafv) { + return (DeployModel) super.set$Xgafv($Xgafv); + } - @Override - public Completions setAlt(java.lang.String alt) { - return (Completions) super.setAlt(alt); - } + @Override + public DeployModel setAccessToken(java.lang.String accessToken) { + return (DeployModel) super.setAccessToken(accessToken); + } - @Override - public Completions setCallback(java.lang.String callback) { - return (Completions) super.setCallback(callback); - } + @Override + public DeployModel setAlt(java.lang.String alt) { + return (DeployModel) super.setAlt(alt); + } - @Override - public Completions setFields(java.lang.String fields) { - return (Completions) super.setFields(fields); - } + @Override + public DeployModel setCallback(java.lang.String callback) { + return (DeployModel) super.setCallback(callback); + } - @Override - public Completions setKey(java.lang.String key) { - return (Completions) super.setKey(key); - } + @Override + public DeployModel setFields(java.lang.String fields) { + return (DeployModel) super.setFields(fields); + } - @Override - public Completions setOauthToken(java.lang.String oauthToken) { - return (Completions) super.setOauthToken(oauthToken); - } + @Override + public DeployModel setKey(java.lang.String key) { + return (DeployModel) super.setKey(key); + } - @Override - public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Completions) super.setPrettyPrint(prettyPrint); - } + @Override + public DeployModel setOauthToken(java.lang.String oauthToken) { + return (DeployModel) super.setOauthToken(oauthToken); + } - @Override - public Completions setQuotaUser(java.lang.String quotaUser) { - return (Completions) super.setQuotaUser(quotaUser); - } + @Override + public DeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeployModel) super.setPrettyPrint(prettyPrint); + } - @Override - public Completions setUploadType(java.lang.String uploadType) { - return (Completions) super.setUploadType(uploadType); - } + @Override + public DeployModel setQuotaUser(java.lang.String quotaUser) { + return (DeployModel) super.setQuotaUser(quotaUser); + } - @Override - public Completions setUploadProtocol(java.lang.String uploadProtocol) { - return (Completions) super.setUploadProtocol(uploadProtocol); - } + @Override + public DeployModel setUploadType(java.lang.String uploadType) { + return (DeployModel) super.setUploadType(uploadType); + } - /** - * 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; + @Override + public DeployModel setUploadProtocol(java.lang.String uploadProtocol) { + return (DeployModel) super.setUploadProtocol(uploadProtocol); + } - /** 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 resource into which to deploy a Model. 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 Completions 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/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + /** Required. The name of the Endpoint resource into which to deploy a Model. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Completions set(String parameterName, Object value) { - return (Completions) super.set(parameterName, value); + /** + * Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DeployModel 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public DeployModel set(String parameterName, Object value) { + return (DeployModel) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the DeployedModels collection. + * Perform an unary online prediction request to a gRPC model server for Vertex first-party products + * and frameworks. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DeployedModels.List request = aiplatform.deployedModels().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.directPredict".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link DirectPredict#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.GoogleCloudAiplatformV1beta1DirectPredictRequest}
+ * @return the request
*/
- public DeployedModels deployedModels() {
- return new DeployedModels();
+ public DirectPredict directPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) throws java.io.IOException {
+ DirectPredict result = new DirectPredict(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "deployedModels" collection of methods.
- */
- public class DeployedModels {
+ public class DirectPredict extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.directPredict".
*
- * @return the resource collection
- */
- public Invoke invoke() {
- return new Invoke();
- }
-
- /**
- * The "invoke" collection of methods.
+ * This request holds the parameters needed by the the aiplatform server. After setting any
+ * optional parameters, call the {@link DirectPredict#execute()} method to invoke the remote
+ * operation. {@link DirectPredict#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} 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.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @since 1.13 */ - public class Invoke { - - /** - * 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 "invoke.invoke". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link InvokeRequest#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 deployedModelId ID of the DeployedModel that serves the invoke request. - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @return the request - */ - public InvokeRequest invoke(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { - InvokeRequest result = new InvokeRequest(endpoint, deployedModelId, invokeId, content); - initialize(result); - return result; + protected DirectPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictResponse.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/[^/]+/endpoints/[^/]+$"); } + } - public class InvokeRequest extends AiplatformRequest{@link InvokeRequest#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} 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 deployedModelId ID of the DeployedModel that serves the invoke request. - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @since 1.13 - */ - protected InvokeRequest(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest 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/[^/]+/endpoints/[^/]+$"); - } - this.deployedModelId = com.google.api.client.util.Preconditions.checkNotNull(deployedModelId, "Required parameter deployedModelId must be specified."); - this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); - } - - @Override - public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { - return (InvokeRequest) super.set$Xgafv($Xgafv); - } - - @Override - public InvokeRequest setAccessToken(java.lang.String accessToken) { - return (InvokeRequest) super.setAccessToken(accessToken); - } - - @Override - public InvokeRequest setAlt(java.lang.String alt) { - return (InvokeRequest) super.setAlt(alt); - } - - @Override - public InvokeRequest setCallback(java.lang.String callback) { - return (InvokeRequest) super.setCallback(callback); - } - - @Override - public InvokeRequest setFields(java.lang.String fields) { - return (InvokeRequest) super.setFields(fields); - } - - @Override - public InvokeRequest setKey(java.lang.String key) { - return (InvokeRequest) super.setKey(key); - } - - @Override - public InvokeRequest setOauthToken(java.lang.String oauthToken) { - return (InvokeRequest) super.setOauthToken(oauthToken); - } - - @Override - public InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvokeRequest) super.setPrettyPrint(prettyPrint); - } - - @Override - public InvokeRequest setQuotaUser(java.lang.String quotaUser) { - return (InvokeRequest) super.setQuotaUser(quotaUser); - } + @Override + public DirectPredict set$Xgafv(java.lang.String $Xgafv) { + return (DirectPredict) super.set$Xgafv($Xgafv); + } - @Override - public InvokeRequest setUploadType(java.lang.String uploadType) { - return (InvokeRequest) super.setUploadType(uploadType); - } + @Override + public DirectPredict setAccessToken(java.lang.String accessToken) { + return (DirectPredict) super.setAccessToken(accessToken); + } - @Override - public InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (InvokeRequest) super.setUploadProtocol(uploadProtocol); - } + @Override + public DirectPredict setAlt(java.lang.String alt) { + return (DirectPredict) super.setAlt(alt); + } - /** - * 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; + @Override + public DirectPredict setCallback(java.lang.String callback) { + return (DirectPredict) super.setCallback(callback); + } - /** 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; - } + @Override + public DirectPredict setFields(java.lang.String fields) { + return (DirectPredict) super.setFields(fields); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public InvokeRequest 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/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public DirectPredict setKey(java.lang.String key) { + return (DirectPredict) super.setKey(key); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public DirectPredict setOauthToken(java.lang.String oauthToken) { + return (DirectPredict) super.setOauthToken(oauthToken); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + @Override + public DirectPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DirectPredict) super.setPrettyPrint(prettyPrint); + } - /** ID of the DeployedModel that serves the invoke request. */ - public InvokeRequest setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + @Override + public DirectPredict setQuotaUser(java.lang.String quotaUser) { + return (DirectPredict) super.setQuotaUser(quotaUser); + } - @com.google.api.client.util.Key - private java.lang.String invokeId; + @Override + public DirectPredict setUploadType(java.lang.String uploadType) { + return (DirectPredict) super.setUploadType(uploadType); + } - /** + @Override + public DirectPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (DirectPredict) super.setUploadProtocol(uploadProtocol); + } - */ - public java.lang.String getInvokeId() { - return invokeId; - } + /** + * 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; - public InvokeRequest setInvokeId(java.lang.String invokeId) { - this.invokeId = invokeId; - return this; - } + /** 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; + } - @Override - public InvokeRequest set(String parameterName, Object value) { - return (InvokeRequest) super.set(parameterName, value); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DirectPredict 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } + @Override + public DirectPredict set(String parameterName, Object value) { + return (DirectPredict) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Google collection. + * Perform an unary online prediction request to a gRPC model server for custom containers. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Google.List request = aiplatform.google().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.directRawPredict".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link DirectRawPredict#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.GoogleCloudAiplatformV1beta1DirectRawPredictRequest}
+ * @return the request
*/
- public Google google() {
- return new Google();
+ public DirectRawPredict directRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) throws java.io.IOException {
+ DirectRawPredict result = new DirectRawPredict(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "google" collection of methods.
- */
- public class Google {
+ public class DirectRawPredict extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Science.List request = aiplatform.science().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.directRawPredict".
*
- * @return the resource collection
- */
- public Science science() {
- return new Science();
- }
-
- /**
- * The "science" collection of methods.
+ * This request holds the parameters needed by the the aiplatform server. After setting any
+ * optional parameters, call the {@link DirectRawPredict#execute()} method to invoke the remote
+ * operation. {@link DirectRawPredict#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.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @since 1.13 */ - public class Science { - - /** - * 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 "science.inference". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Inference#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 Inference inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Inference result = new Inference(endpoint, content); - initialize(result); - return result; + protected DirectRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictResponse.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/[^/]+/endpoints/[^/]+$"); } + } - public class Inference extends AiplatformRequest{@link - * Inference#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 Inference(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/[^/]+/endpoints/google$"); - } - } - - @Override - public Inference set$Xgafv(java.lang.String $Xgafv) { - return (Inference) super.set$Xgafv($Xgafv); - } - - @Override - public Inference setAccessToken(java.lang.String accessToken) { - return (Inference) super.setAccessToken(accessToken); - } - - @Override - public Inference setAlt(java.lang.String alt) { - return (Inference) super.setAlt(alt); - } - - @Override - public Inference setCallback(java.lang.String callback) { - return (Inference) super.setCallback(callback); - } - - @Override - public Inference setFields(java.lang.String fields) { - return (Inference) super.setFields(fields); - } + @Override + public DirectRawPredict set$Xgafv(java.lang.String $Xgafv) { + return (DirectRawPredict) super.set$Xgafv($Xgafv); + } - @Override - public Inference setKey(java.lang.String key) { - return (Inference) super.setKey(key); - } + @Override + public DirectRawPredict setAccessToken(java.lang.String accessToken) { + return (DirectRawPredict) super.setAccessToken(accessToken); + } - @Override - public Inference setOauthToken(java.lang.String oauthToken) { - return (Inference) super.setOauthToken(oauthToken); - } + @Override + public DirectRawPredict setAlt(java.lang.String alt) { + return (DirectRawPredict) super.setAlt(alt); + } - @Override - public Inference setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Inference) super.setPrettyPrint(prettyPrint); - } + @Override + public DirectRawPredict setCallback(java.lang.String callback) { + return (DirectRawPredict) super.setCallback(callback); + } - @Override - public Inference setQuotaUser(java.lang.String quotaUser) { - return (Inference) super.setQuotaUser(quotaUser); - } + @Override + public DirectRawPredict setFields(java.lang.String fields) { + return (DirectRawPredict) super.setFields(fields); + } - @Override - public Inference setUploadType(java.lang.String uploadType) { - return (Inference) super.setUploadType(uploadType); - } + @Override + public DirectRawPredict setKey(java.lang.String key) { + return (DirectRawPredict) super.setKey(key); + } - @Override - public Inference setUploadProtocol(java.lang.String uploadProtocol) { - return (Inference) super.setUploadProtocol(uploadProtocol); - } + @Override + public DirectRawPredict setOauthToken(java.lang.String oauthToken) { + return (DirectRawPredict) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public DirectRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DirectRawPredict) super.setPrettyPrint(prettyPrint); + } - /** 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; - } + @Override + public DirectRawPredict setQuotaUser(java.lang.String quotaUser) { + return (DirectRawPredict) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Inference 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/[^/]+/endpoints/google$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public DirectRawPredict setUploadType(java.lang.String uploadType) { + return (DirectRawPredict) super.setUploadType(uploadType); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public DirectRawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (DirectRawPredict) super.setUploadProtocol(uploadProtocol); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + /** + * 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; - /** ID of the DeployedModel that serves the invoke request. */ - public Inference setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + /** 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; + } - @Override - public Inference set(String parameterName, Object value) { - return (Inference) super.set(parameterName, value); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DirectRawPredict 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } + @Override + public DirectRawPredict set(String parameterName, Object value) { + return (DirectRawPredict) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Invoke collection. + * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel + * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels + * must have explanation_spec populated. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.explain".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Explain#execute()} method to invoke the remote operation.
+ *
+ * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest}
+ * @return the request
*/
- public Invoke invoke() {
- return new Invoke();
+ public Explain explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) throws java.io.IOException {
+ Explain result = new Explain(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "invoke" collection of methods.
- */
- public class Invoke {
+ public class Explain extends AiplatformRequest{@link + * Explain#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 invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @return the request + * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @since 1.13 */ - public InvokeRequest invoke(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { - InvokeRequest result = new InvokeRequest(endpoint, invokeId, content); - initialize(result); - return result; + protected Explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainResponse.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/[^/]+/endpoints/[^/]+$"); + } } - public class InvokeRequest extends AiplatformRequest{@link InvokeRequest#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} 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 invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @since 1.13 - */ - protected InvokeRequest(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest 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/[^/]+/endpoints/[^/]+$"); - } - this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); - } + @Override + public Explain set$Xgafv(java.lang.String $Xgafv) { + return (Explain) super.set$Xgafv($Xgafv); + } - @Override - public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { - return (InvokeRequest) super.set$Xgafv($Xgafv); - } + @Override + public Explain setAccessToken(java.lang.String accessToken) { + return (Explain) super.setAccessToken(accessToken); + } - @Override - public InvokeRequest setAccessToken(java.lang.String accessToken) { - return (InvokeRequest) super.setAccessToken(accessToken); - } + @Override + public Explain setAlt(java.lang.String alt) { + return (Explain) super.setAlt(alt); + } - @Override - public InvokeRequest setAlt(java.lang.String alt) { - return (InvokeRequest) super.setAlt(alt); - } + @Override + public Explain setCallback(java.lang.String callback) { + return (Explain) super.setCallback(callback); + } - @Override - public InvokeRequest setCallback(java.lang.String callback) { - return (InvokeRequest) super.setCallback(callback); - } + @Override + public Explain setFields(java.lang.String fields) { + return (Explain) super.setFields(fields); + } - @Override - public InvokeRequest setFields(java.lang.String fields) { - return (InvokeRequest) super.setFields(fields); - } + @Override + public Explain setKey(java.lang.String key) { + return (Explain) super.setKey(key); + } - @Override - public InvokeRequest setKey(java.lang.String key) { - return (InvokeRequest) super.setKey(key); - } + @Override + public Explain setOauthToken(java.lang.String oauthToken) { + return (Explain) super.setOauthToken(oauthToken); + } - @Override - public InvokeRequest setOauthToken(java.lang.String oauthToken) { - return (InvokeRequest) super.setOauthToken(oauthToken); - } + @Override + public Explain setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Explain) super.setPrettyPrint(prettyPrint); + } - @Override - public InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvokeRequest) super.setPrettyPrint(prettyPrint); - } + @Override + public Explain setQuotaUser(java.lang.String quotaUser) { + return (Explain) super.setQuotaUser(quotaUser); + } - @Override - public InvokeRequest setQuotaUser(java.lang.String quotaUser) { - return (InvokeRequest) super.setQuotaUser(quotaUser); - } + @Override + public Explain setUploadType(java.lang.String uploadType) { + return (Explain) super.setUploadType(uploadType); + } - @Override - public InvokeRequest setUploadType(java.lang.String uploadType) { - return (InvokeRequest) super.setUploadType(uploadType); - } + @Override + public Explain setUploadProtocol(java.lang.String uploadProtocol) { + return (Explain) super.setUploadProtocol(uploadProtocol); + } - @Override - public InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (InvokeRequest) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the Endpoint requested to serve the explanation. 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}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** Required. The name of the Endpoint requested to serve the explanation. 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 java.lang.String getEndpoint() { - return endpoint; + /** + * Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Explain 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public InvokeRequest 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/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String invokeId; - - /** - - */ - public java.lang.String getInvokeId() { - return invokeId; - } - - public InvokeRequest setInvokeId(java.lang.String invokeId) { - this.invokeId = invokeId; - return this; - } - - @Override - public InvokeRequest set(String parameterName, Object value) { - return (InvokeRequest) super.set(parameterName, value); - } + @Override + public Explain set(String parameterName, Object value) { + return (Explain) super.set(parameterName, value); } - } /** - * An accessor for creating requests from the Openapi collection. + * Fetch an asynchronous online prediction operation. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Openapi.List request = aiplatform.openapi().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.fetchPredictOperation".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link FetchPredictOperation#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}` or
+ * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest}
+ * @return the request
*/
- public Openapi openapi() {
- return new Openapi();
+ public FetchPredictOperation fetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) throws java.io.IOException {
+ FetchPredictOperation result = new FetchPredictOperation(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "openapi" collection of methods.
- */
- public class Openapi {
+ public class FetchPredictOperation extends AiplatformRequest{@link FetchPredictOperation#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} - * @return the request + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @since 1.13 */ - public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Completions result = new Completions(endpoint, content); - initialize(result); - return result; + protected FetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); + } } - public class Completions extends AiplatformRequest{@link - * Completions#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 Completions(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/[^/]+/endpoints/openapi$"); - } - } + @Override + public FetchPredictOperation set$Xgafv(java.lang.String $Xgafv) { + return (FetchPredictOperation) super.set$Xgafv($Xgafv); + } - @Override - public Completions set$Xgafv(java.lang.String $Xgafv) { - return (Completions) super.set$Xgafv($Xgafv); - } + @Override + public FetchPredictOperation setAccessToken(java.lang.String accessToken) { + return (FetchPredictOperation) super.setAccessToken(accessToken); + } - @Override - public Completions setAccessToken(java.lang.String accessToken) { - return (Completions) super.setAccessToken(accessToken); - } + @Override + public FetchPredictOperation setAlt(java.lang.String alt) { + return (FetchPredictOperation) super.setAlt(alt); + } - @Override - public Completions setAlt(java.lang.String alt) { - return (Completions) super.setAlt(alt); - } + @Override + public FetchPredictOperation setCallback(java.lang.String callback) { + return (FetchPredictOperation) super.setCallback(callback); + } - @Override - public Completions setCallback(java.lang.String callback) { - return (Completions) super.setCallback(callback); - } + @Override + public FetchPredictOperation setFields(java.lang.String fields) { + return (FetchPredictOperation) super.setFields(fields); + } - @Override - public Completions setFields(java.lang.String fields) { - return (Completions) super.setFields(fields); - } + @Override + public FetchPredictOperation setKey(java.lang.String key) { + return (FetchPredictOperation) super.setKey(key); + } - @Override - public Completions setKey(java.lang.String key) { - return (Completions) super.setKey(key); - } + @Override + public FetchPredictOperation setOauthToken(java.lang.String oauthToken) { + return (FetchPredictOperation) super.setOauthToken(oauthToken); + } - @Override - public Completions setOauthToken(java.lang.String oauthToken) { - return (Completions) super.setOauthToken(oauthToken); - } + @Override + public FetchPredictOperation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchPredictOperation) super.setPrettyPrint(prettyPrint); + } - @Override - public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Completions) super.setPrettyPrint(prettyPrint); - } + @Override + public FetchPredictOperation setQuotaUser(java.lang.String quotaUser) { + return (FetchPredictOperation) super.setQuotaUser(quotaUser); + } - @Override - public Completions setQuotaUser(java.lang.String quotaUser) { - return (Completions) super.setQuotaUser(quotaUser); - } + @Override + public FetchPredictOperation setUploadType(java.lang.String uploadType) { + return (FetchPredictOperation) super.setUploadType(uploadType); + } - @Override - public Completions setUploadType(java.lang.String uploadType) { - return (Completions) super.setUploadType(uploadType); - } + @Override + public FetchPredictOperation setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchPredictOperation) super.setUploadProtocol(uploadProtocol); + } - @Override - public Completions setUploadProtocol(java.lang.String uploadProtocol) { - return (Completions) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + @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}` - */ - @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}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + 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 java.lang.String getEndpoint() { - return endpoint; + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public FetchPredictOperation 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Completions 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/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public FetchPredictOperation set(String parameterName, Object value) { + return (FetchPredictOperation) super.set(parameterName, value); + } + } + /** + * Generate content with multimodal inputs. + * + * Create a request for the method "endpoints.generateContent". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GenerateContent#execute()} method to invoke the remote operation. + * + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @return the request + */ + public GenerateContent generateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { + GenerateContent result = new GenerateContent(model, content); + initialize(result); + return result; + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + public class GenerateContent extends AiplatformRequest{@link GenerateContent#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} 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} - * @return the request + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @since 1.13 */ - public Embeddings embeddings(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Embeddings result = new Embeddings(endpoint, content); - initialize(result); - return result; + protected GenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); + this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Embeddings extends AiplatformRequest{@link - * Embeddings#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 Embeddings(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/[^/]+/endpoints/openapi$"); - } - } + @Override + public GenerateContent set$Xgafv(java.lang.String $Xgafv) { + return (GenerateContent) super.set$Xgafv($Xgafv); + } - @Override - public Embeddings set$Xgafv(java.lang.String $Xgafv) { - return (Embeddings) super.set$Xgafv($Xgafv); - } + @Override + public GenerateContent setAccessToken(java.lang.String accessToken) { + return (GenerateContent) super.setAccessToken(accessToken); + } - @Override - public Embeddings setAccessToken(java.lang.String accessToken) { - return (Embeddings) super.setAccessToken(accessToken); - } + @Override + public GenerateContent setAlt(java.lang.String alt) { + return (GenerateContent) super.setAlt(alt); + } - @Override - public Embeddings setAlt(java.lang.String alt) { - return (Embeddings) super.setAlt(alt); - } + @Override + public GenerateContent setCallback(java.lang.String callback) { + return (GenerateContent) super.setCallback(callback); + } - @Override - public Embeddings setCallback(java.lang.String callback) { - return (Embeddings) super.setCallback(callback); - } + @Override + public GenerateContent setFields(java.lang.String fields) { + return (GenerateContent) super.setFields(fields); + } - @Override - public Embeddings setFields(java.lang.String fields) { - return (Embeddings) super.setFields(fields); - } + @Override + public GenerateContent setKey(java.lang.String key) { + return (GenerateContent) super.setKey(key); + } - @Override - public Embeddings setKey(java.lang.String key) { - return (Embeddings) super.setKey(key); - } + @Override + public GenerateContent setOauthToken(java.lang.String oauthToken) { + return (GenerateContent) super.setOauthToken(oauthToken); + } - @Override - public Embeddings setOauthToken(java.lang.String oauthToken) { - return (Embeddings) super.setOauthToken(oauthToken); - } + @Override + public GenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateContent) super.setPrettyPrint(prettyPrint); + } - @Override - public Embeddings setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Embeddings) super.setPrettyPrint(prettyPrint); - } + @Override + public GenerateContent setQuotaUser(java.lang.String quotaUser) { + return (GenerateContent) super.setQuotaUser(quotaUser); + } - @Override - public Embeddings setQuotaUser(java.lang.String quotaUser) { - return (Embeddings) super.setQuotaUser(quotaUser); - } + @Override + public GenerateContent setUploadType(java.lang.String uploadType) { + return (GenerateContent) super.setUploadType(uploadType); + } - @Override - public Embeddings setUploadType(java.lang.String uploadType) { - return (Embeddings) super.setUploadType(uploadType); - } + @Override + public GenerateContent setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateContent) super.setUploadProtocol(uploadProtocol); + } - @Override - public Embeddings setUploadProtocol(java.lang.String uploadProtocol) { - return (Embeddings) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String model; - /** - * 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 fully qualified name of the publisher model or tuned model endpoint to use. Publisher + model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getModel() { + return model; + } - /** 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 fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public GenerateContent setModel(java.lang.String model) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.model = model; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Embeddings 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/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public GenerateContent set(String parameterName, Object value) { + return (GenerateContent) super.set(parameterName, value); + } + } + /** + * Gets an Endpoint. + * + * Create a request for the method "endpoints.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 Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param 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 + * @param name Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @since 1.13 */ - 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); - initialize(result); - return result; - } - - 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.
- * - * @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) { - 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/[^/]+/endpoints/openapi$"); - } - } - - @Override - public Responses set$Xgafv(java.lang.String $Xgafv) { - return (Responses) super.set$Xgafv($Xgafv); - } - - @Override - public Responses setAccessToken(java.lang.String accessToken) { - return (Responses) super.setAccessToken(accessToken); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); } + } - @Override - public Responses setAlt(java.lang.String alt) { - return (Responses) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Responses setCallback(java.lang.String callback) { - return (Responses) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Responses setFields(java.lang.String fields) { - return (Responses) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Responses setKey(java.lang.String key) { - return (Responses) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Responses setOauthToken(java.lang.String oauthToken) { - return (Responses) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Responses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Responses) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Responses setQuotaUser(java.lang.String quotaUser) { - return (Responses) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Responses setUploadType(java.lang.String uploadType) { - return (Responses) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Responses setUploadProtocol(java.lang.String uploadProtocol) { - return (Responses) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** 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; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * 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) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + /** + * Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** ID of the DeployedModel that serves the invoke request. */ - public Responses setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + /** Required. The name of the Endpoint resource. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Responses set(String parameterName, Object value) { - return (Responses) super.set(parameterName, value); + /** + * Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + 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/[^/]+/endpoints/[^/]+$"); } + this.name = name; + return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Operations collection. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.getIamPolicy".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.
+ *
+ * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
+ * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
+ * this field.
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException {
+ GetIamPolicy result = new GetIamPolicy(resource);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class GetIamPolicy extends AiplatformRequest{@link + * GetIamPolicy#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 + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.resource = resource; + return this; + } - /** 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; - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; - /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } + } + /** + * Lists Endpoints in a Location. + * + * Create a request for the method "endpoints.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 parent Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be deleted. - * @return the request + * @param parent Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEndpointsResponse.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 class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The resource name of the Location from which to list the Endpoints. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; + /** + * Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + */ + public List 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; + } - /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` + * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * + * `display_name` supports `=` and `!=`. * `labels` supports general map functions that + * is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key + * existence * A key including a space must be quoted. `labels."a key"`. * + * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + /** Optional. An expression for filtering the results of the request. For field names both snake_case + and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint + ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports `=` and `!=`. + * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * + `labels.key:*` or `labels:key` - key existence * A key including a space must be quoted. `labels."a + key"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + */ + public java.lang.String getFilter() { + return filter; } + /** - * 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 + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` + * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * + * `display_name` supports `=` and `!=`. * `labels` supports general map functions that + * is: * `labels.key=value` - key:value equality * `labels.key:*` or `labels:key` - key + * existence * A key including a space must be quoted. `labels."a key"`. * + * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Optional. The standard list page token. Typically obtained via + * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Optional. The standard list page token. Typically obtained via + ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** + * Optional. The standard list page token. Typically obtained via + * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints + * call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Optional. Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing deployed model. Updatable fields include `min_replica_count`, + * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, + * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). + * + * Create a request for the method "endpoints.mutateDeployedModel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link MutateDeployedModel#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} + * @return the request + */ + public MutateDeployedModel mutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) throws java.io.IOException { + MutateDeployedModel result = new MutateDeployedModel(endpoint, content); + initialize(result); + return result; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + public class MutateDeployedModel extends AiplatformRequest{@link MutateDeployedModel#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 + * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected MutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); + } } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public MutateDeployedModel setCallback(java.lang.String callback) { + return (MutateDeployedModel) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public MutateDeployedModel setFields(java.lang.String fields) { + return (MutateDeployedModel) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public MutateDeployedModel setKey(java.lang.String key) { + return (MutateDeployedModel) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public MutateDeployedModel setOauthToken(java.lang.String oauthToken) { + return (MutateDeployedModel) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public MutateDeployedModel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MutateDeployedModel) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public MutateDeployedModel setQuotaUser(java.lang.String quotaUser) { + return (MutateDeployedModel) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public MutateDeployedModel setUploadType(java.lang.String uploadType) { + return (MutateDeployedModel) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public MutateDeployedModel setUploadProtocol(java.lang.String uploadProtocol) { + return (MutateDeployedModel) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Required. The name of the Endpoint resource into which to mutate a DeployedModel. + * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Required. The name of the Endpoint resource into which to mutate a DeployedModel. + * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public MutateDeployedModel 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public MutateDeployedModel set(String parameterName, Object value) { + return (MutateDeployedModel) super.set(parameterName, value); + } + } + /** + * Updates an Endpoint. + * + * Create a request for the method "endpoints.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + public class Patch extends AiplatformRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The resource name of the Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); } + } - /** 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/[^/]+/endpoints/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * 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; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** 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; - } + /** Identifier. The resource name of the Endpoint. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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; - } + /** Identifier. The resource name of the Endpoint. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** Identifier. The resource name of the Endpoint. */ + public Patch 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/[^/]+/endpoints/[^/]+$"); } + this.name = name; + return this; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Create a request for the method "endpoints.predict". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Predict#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.GoogleCloudAiplatformV1beta1PredictRequest} + * @return the request + */ + public Predict predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) throws java.io.IOException { + Predict result = new Predict(endpoint, content); + initialize(result); + return result; + } + + public class Predict extends AiplatformRequest{@link + * Predict#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 + * @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.GoogleCloudAiplatformV1beta1PredictRequest} + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + protected Predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictResponse.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/[^/]+/endpoints/[^/]+$"); + } } - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.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/[^/]+/endpoints/[^/]+/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 Predict setCallback(java.lang.String callback) { + return (Predict) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Predict setFields(java.lang.String fields) { + return (Predict) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Predict setKey(java.lang.String key) { + return (Predict) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Predict setOauthToken(java.lang.String oauthToken) { + return (Predict) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Predict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Predict) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Predict setQuotaUser(java.lang.String quotaUser) { + return (Predict) super.setQuotaUser(quotaUser); + } - /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Predict setUploadType(java.lang.String uploadType) { + return (Predict) super.setUploadType(uploadType); + } - /** - * 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; + @Override + public Predict setUploadProtocol(java.lang.String uploadProtocol) { + return (Predict) super.setUploadProtocol(uploadProtocol); + } - /** 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; - } + /** + * 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; - /** - * 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; - } + /** 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; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Predict 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public Predict set(String parameterName, Object value) { + return (Predict) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Responses collection. + * Create a request for the method "endpoints.predictLongRunning". * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Responses.List request = aiplatform.responses().list(parameters ...)}
- *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link PredictLongRunning#execute()} method to invoke the remote operation.
*
- * @return the resource collection
+ * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
+ * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest}
+ * @return the request
*/
- public Responses responses() {
- return new Responses();
+ public PredictLongRunning predictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) throws java.io.IOException {
+ PredictLongRunning result = new PredictLongRunning(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "responses" collection of methods.
- */
- public class Responses {
+ public class PredictLongRunning extends AiplatformRequest{@link PredictLongRunning#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} 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}` - * @return the request + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected PredictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.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/[^/]+/endpoints/[^/]+$"); + } } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Response resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - } + @Override + public PredictLongRunning setCallback(java.lang.String callback) { + return (PredictLongRunning) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public PredictLongRunning setFields(java.lang.String fields) { + return (PredictLongRunning) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public PredictLongRunning setKey(java.lang.String key) { + return (PredictLongRunning) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public PredictLongRunning setOauthToken(java.lang.String oauthToken) { + return (PredictLongRunning) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public PredictLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PredictLongRunning) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public PredictLongRunning setQuotaUser(java.lang.String quotaUser) { + return (PredictLongRunning) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public PredictLongRunning setUploadType(java.lang.String uploadType) { + return (PredictLongRunning) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public PredictLongRunning setUploadProtocol(java.lang.String uploadProtocol) { + return (PredictLongRunning) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public PredictLongRunning 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public PredictLongRunning set(String parameterName, Object value) { + return (PredictLongRunning) super.set(parameterName, value); + } + } + /** + * Perform an online prediction with an arbitrary HTTP payload. The response includes the following + * HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * + * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction. + * + * Create a request for the method "endpoints.rawPredict". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link RawPredict#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.GoogleCloudAiplatformV1beta1RawPredictRequest} + * @return the request + */ + public RawPredict rawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) throws java.io.IOException { + RawPredict result = new RawPredict(endpoint, content); + initialize(result); + return result; + } - /** - * 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; + public class RawPredict extends AiplatformRequest{@link + * RawPredict#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}` - * @return the request + * @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.GoogleCloudAiplatformV1beta1RawPredictRequest} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected RawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest 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/[^/]+/endpoints/[^/]+$"); + } } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Response resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - } + @Override + public RawPredict setCallback(java.lang.String callback) { + return (RawPredict) super.setCallback(callback); + } - @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 RawPredict setFields(java.lang.String fields) { + return (RawPredict) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public RawPredict setKey(java.lang.String key) { + return (RawPredict) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public RawPredict setOauthToken(java.lang.String oauthToken) { + return (RawPredict) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public RawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RawPredict) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public RawPredict setQuotaUser(java.lang.String quotaUser) { + return (RawPredict) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public RawPredict setUploadType(java.lang.String uploadType) { + return (RawPredict) super.setUploadType(uploadType); + } - /** - * 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; + @Override + public RawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (RawPredict) super.setUploadProtocol(uploadProtocol); + } - /** 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 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 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/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - this.name = name; - return this; - } + /** 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; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public RawPredict 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/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public RawPredict set(String parameterName, Object value) { + return (RawPredict) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the EvaluationItems collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.EvaluationItems.List request = aiplatform.evaluationItems().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public EvaluationItems evaluationItems() {
- return new EvaluationItems();
- }
-
- /**
- * The "evaluationItems" collection of methods.
- */
- public class EvaluationItems {
-
/**
- * Creates an Evaluation Item.
+ * Perform a server-side streaming online prediction request for Vertex LLM streaming.
*
- * Create a request for the method "evaluationItems.create".
+ * Create a request for the method "endpoints.serverStreamingPredict".
*
* 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.
+ * parameters, call the {@link ServerStreamingPredict#execute()} method to invoke the remote
+ * operation.
*
- * @param parent Required. The resource name of the Location to create the Evaluation Item in. Format:
- * `projects/{project}/locations/{location}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem}
+ * @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.GoogleCloudAiplatformV1beta1StreamingPredictRequest}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem content) throws java.io.IOException {
- Create result = new Create(parent, content);
+ public ServerStreamingPredict serverStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) throws java.io.IOException {
+ ServerStreamingPredict result = new ServerStreamingPredict(endpoint, content);
initialize(result);
return result;
}
- public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link ServerStreamingPredict#execute()} method to invoke the + * remote operation.{@link ServerStreamingPredict#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param parent Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem} + * @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.GoogleCloudAiplatformV1beta1StreamingPredictRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected ServerStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictResponse.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public ServerStreamingPredict set$Xgafv(java.lang.String $Xgafv) { + return (ServerStreamingPredict) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public ServerStreamingPredict setAccessToken(java.lang.String accessToken) { + return (ServerStreamingPredict) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public ServerStreamingPredict setAlt(java.lang.String alt) { + return (ServerStreamingPredict) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public ServerStreamingPredict setCallback(java.lang.String callback) { + return (ServerStreamingPredict) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public ServerStreamingPredict setFields(java.lang.String fields) { + return (ServerStreamingPredict) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public ServerStreamingPredict setKey(java.lang.String key) { + return (ServerStreamingPredict) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public ServerStreamingPredict setOauthToken(java.lang.String oauthToken) { + return (ServerStreamingPredict) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public ServerStreamingPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ServerStreamingPredict) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public ServerStreamingPredict setQuotaUser(java.lang.String quotaUser) { + return (ServerStreamingPredict) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public ServerStreamingPredict setUploadType(java.lang.String uploadType) { + return (ServerStreamingPredict) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public ServerStreamingPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (ServerStreamingPredict) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` + * 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 parent; + private java.lang.String endpoint; - /** Required. The resource name of the Location to create the Evaluation Item in. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getEndpoint() { + return endpoint; } /** - * Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Create setParent(java.lang.String parent) { + public ServerStreamingPredict setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.parent = parent; + this.endpoint = endpoint; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public ServerStreamingPredict set(String parameterName, Object value) { + return (ServerStreamingPredict) super.set(parameterName, value); } } /** - * Deletes an Evaluation Item. + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * - * Create a request for the method "evaluationItems.delete". + * Create a request for the method "endpoints.setIamPolicy". * * 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. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.{@link + * SetIamPolicy#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 EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String resource; - /** Required. The name of the EvaluationItem resource to be deleted. Format: - `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.String getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. */ - public Delete setName(java.lang.String name) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets an Evaluation Item. + * Generate content with multimodal inputs with streaming support. * - * Create a request for the method "evaluationItems.get". + * Create a request for the method "endpoints.streamGenerateContent". * * 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. + * parameters, call the {@link StreamGenerateContent#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public StreamGenerateContent streamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { + StreamGenerateContent result = new StreamGenerateContent(model, content); initialize(result); return result; } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link StreamGenerateContent#execute()} method to invoke the + * remote operation.{@link StreamGenerateContent#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 EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected StreamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); + this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model 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/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public StreamGenerateContent set$Xgafv(java.lang.String $Xgafv) { + return (StreamGenerateContent) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public StreamGenerateContent setAccessToken(java.lang.String accessToken) { + return (StreamGenerateContent) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public StreamGenerateContent setAlt(java.lang.String alt) { + return (StreamGenerateContent) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public StreamGenerateContent setCallback(java.lang.String callback) { + return (StreamGenerateContent) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public StreamGenerateContent setFields(java.lang.String fields) { + return (StreamGenerateContent) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public StreamGenerateContent setKey(java.lang.String key) { + return (StreamGenerateContent) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public StreamGenerateContent setOauthToken(java.lang.String oauthToken) { + return (StreamGenerateContent) super.setOauthToken(oauthToken); } @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); + public StreamGenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamGenerateContent) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public StreamGenerateContent setQuotaUser(java.lang.String quotaUser) { + return (StreamGenerateContent) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public StreamGenerateContent setUploadType(java.lang.String uploadType) { + return (StreamGenerateContent) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public StreamGenerateContent setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamGenerateContent) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String model; - /** Required. The name of the EvaluationItem resource. Format: - `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getModel() { + return model; } /** - * Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Get setName(java.lang.String name) { + public StreamGenerateContent setModel(java.lang.String model) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.name = name; + this.model = model; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public StreamGenerateContent set(String parameterName, Object value) { + return (StreamGenerateContent) super.set(parameterName, value); } } /** - * Lists Evaluation Items. + * Perform a streaming online prediction with an arbitrary HTTP payload. * - * Create a request for the method "evaluationItems.list". + * Create a request for the method "endpoints.streamRawPredict". * * 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. + * parameters, call the {@link StreamRawPredict#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the Evaluation Items. Format: - * `projects/{project}/locations/{location}` + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public StreamRawPredict streamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) throws java.io.IOException { + StreamRawPredict result = new StreamRawPredict(endpoint, content); initialize(result); return result; } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link StreamRawPredict#execute()} method to invoke the remote + * operation.{@link StreamRawPredict#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param parent Required. The resource name of the Location from which to list the Evaluation Items. Format: - * `projects/{project}/locations/{location}` + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @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); + public StreamRawPredict set$Xgafv(java.lang.String $Xgafv) { + return (StreamRawPredict) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StreamRawPredict setAccessToken(java.lang.String accessToken) { + return (StreamRawPredict) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StreamRawPredict setAlt(java.lang.String alt) { + return (StreamRawPredict) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StreamRawPredict setCallback(java.lang.String callback) { + return (StreamRawPredict) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StreamRawPredict setFields(java.lang.String fields) { + return (StreamRawPredict) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StreamRawPredict setKey(java.lang.String key) { + return (StreamRawPredict) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StreamRawPredict setOauthToken(java.lang.String oauthToken) { + return (StreamRawPredict) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StreamRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamRawPredict) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StreamRawPredict setQuotaUser(java.lang.String quotaUser) { + return (StreamRawPredict) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StreamRawPredict setUploadType(java.lang.String uploadType) { + return (StreamRawPredict) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StreamRawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamRawPredict) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location from which to list the Evaluation Items. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String endpoint; - /** Required. The resource name of the Location from which to list the Evaluation Items. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getEndpoint() { + return endpoint; } /** - * Required. The resource name of the Location from which to list the Evaluation Items. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ - public List setParent(java.lang.String parent) { + public StreamRawPredict setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.parent = parent; + this.endpoint = endpoint; return this; } + @Override + public StreamRawPredict set(String parameterName, Object value) { + return (StreamRawPredict) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "endpoints.testIamPermissions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); + initialize(result); + return result; + } + + public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + } - /** Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names - both snake_case and camelCase are supported. For more information about filter syntax, see - [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } - /** - * Optional. Filter expression that matches a subset of the EvaluationItems to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } - /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order by - * default. Use `desc` after a field name for descending. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - /** Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use - `desc` after a field name for descending. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } - /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order by - * default. Use `desc` after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } - /** Optional. The maximum number of Evaluation Items to return. */ + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String resource; - /** Optional. The maximum number of Evaluation Items to return. + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getResource() { + return resource; } - /** Optional. The maximum number of Evaluation Items to return. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. A page token, received from a previous `ListEvaluationItems` call. Provide - * this to retrieve the subsequent page. + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.util.ListThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "endpoints.undeployModel".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link UndeployModel#execute()} method to invoke the remote operation.
+ *
+ * @param endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format:
+ * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest}
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public UndeployModel undeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) throws java.io.IOException {
+ UndeployModel result = new UndeployModel(endpoint, content);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class UndeployModel extends AiplatformRequest