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 d083af4a5cf..9348272be8e 100644
--- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md
+++ b/clients/google-api-services-aiplatform/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
{@link
+ * SetDefault#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * The typical use is:
- * {@link List#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.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+ * {@code Aiplatform.CollaborativeProjects.List request = aiplatform.collaborativeProjects().list(parameters ...)}
*
*
* @return the resource collection
*/
- public CustomJobs customJobs() {
- return new CustomJobs();
+ public CollaborativeProjects collaborativeProjects() {
+ return new CollaborativeProjects();
}
/**
- * The "customJobs" collection of methods.
+ * The "collaborativeProjects" collection of methods.
*/
- public class CustomJobs {
+ public class CollaborativeProjects {
/**
* An accessor for creating requests from the Operations collection.
@@ -2419,7 +2419,7 @@ public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+ * {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DataLabelingJobs dataLabelingJobs() {
- return new DataLabelingJobs();
+ public CustomJobs customJobs() {
+ return new CustomJobs();
}
/**
- * The "dataLabelingJobs" collection of methods.
+ * The "customJobs" collection of methods.
*/
- public class DataLabelingJobs {
+ public class CustomJobs {
/**
* An accessor for creating requests from the Operations collection.
@@ -3266,7 +3043,7 @@ public class Cancel 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 " + + "^customJobs/[^/]+/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 " + + "^customJobs/[^/]+/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 " + + "^customJobs/[^/]+/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 " + + "^customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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 " + + "^customJobs/[^/]+$"); + } + } + + @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 " + + "^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 " + + "^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 " + + "^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); + } + } + + } + } + + /** + * 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 {
+
+ /**
+ * 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 " + + "^dataLabelingJobs/[^/]+/operations/[^/]+$"); } } @@ -28141,6 +28765,853 @@ public GetStream set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the LearningSets collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.LearningSets.List request = aiplatform.learningSets().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public LearningSets learningSets() {
+ return new LearningSets();
+ }
+
+ /**
+ * The "learningSets" collection of methods.
+ */
+ public class LearningSets {
+
+ /**
+ * 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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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 " + + "^learningSets/[^/]+$"); + } + } + + @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 " + + "^learningSets/[^/]+$"); + } + 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 " + + "^learningSets/[^/]+/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 " + + "^learningSets/[^/]+/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 Media collection. * @@ -28162,196 +29633,248 @@ public Media media() { public class Media { /** - * Upload a file into a RagCorpus. + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. * - * Create a request for the method "media.upload". + * Create a request for the method "media.download". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * parameters, call the {@link Download#execute()} method to invoke the remote operation. * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} * @return the request */ - public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content) throws java.io.IOException { - Upload result = new Upload(parent, content); + public Download download(java.lang.String name) throws java.io.IOException { + Download result = new Download(name); initialize(result); return result; } - /** - * Upload a file into a RagCorpus. - * - * Create a request for the method "media.upload". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - *- * This method should be used for uploading media content. - *
- * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} media metadata or {@code null} if none - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails - */ - public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(parent, content, mediaContent); - initialize(result); - return result; - } - - public class Upload extends AiplatformRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * Download#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 RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} * @since 1.13 */ - protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Download(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GdataMedia.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/[^/]+/ragCorpora/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } + initializeMediaDownload(); } - /** - * Upload a file into a RagCorpus. - * - * Create a request for the method "media.upload". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param parent Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest} media metadata or {@code null} if none - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(Aiplatform.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadRagFileResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); } @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The name of the RagCorpus resource into which to upload the file. Format: - `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /** Required. The task or collaborative project to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The name of the RagCorpus resource into which to upload the file. Format: - * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} */ - public Upload setParent(java.lang.String parent) { + public Download 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/[^/]+/ragCorpora/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } - this.parent = parent; + this.name = name; + return this; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, + * for a collaborative project, under `/workspace/project`, e.g. + * `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 characters, and + * not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, + * for a collaborative project, under `/workspace/project`, e.g. + * `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 characters, and + * not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + public Download setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of + * a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + * describing its sheets and cells, from which a client draws the workbook as a grid. Any + * other value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of a .docx, + .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON describing its + sheets and cells, from which a client draws the workbook as a grid. Any other value fails with + `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of + * a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + * describing its sheets and cells, from which a client draws the workbook as a grid. Any + * other value fails with `INVALID_ARGUMENT`. + */ + public Download setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; return this; } @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); } } @@ -50109,29 +51632,6 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - @com.google.api.client.util.Key - private java.lang.String idpNonce; - - /** Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning iframe for - session and device non-repudiation. - */ - public java.lang.String getIdpNonce() { - return idpNonce; - } - - /** - * Optional. Optional. One-time cryptographic nonce issued by the trusted IdP provisioning - * iframe for session and device non-repudiation. - */ - public Create setIdpNonce(java.lang.String idpNonce) { - this.idpNonce = idpNonce; - return this; - } - @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); @@ -52272,87 +53772,77 @@ public Wait set(String parameterName, Object value) { } } - } - /** - * An accessor for creating requests from the Apps collection. - * - *The typical use is:
- *
- * {@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.
+ * An accessor for creating requests from the Tasks collection.
*
* The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ * {@code Aiplatform.Tasks.List request = aiplatform.tasks().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Operations operations() {
- return new Operations();
+ public Tasks tasks() {
+ return new Tasks();
}
/**
- * The "operations" collection of methods.
+ * The "tasks" collection of methods.
*/
- public class Operations {
+ public class Tasks {
/**
- * 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`.
+ * Deprecated: use `CancelTaskLro` instead. This method keeps the same cancellation semantics but
+ * returns `Task` directly, which forecloses the future cascade behaviour on recurring parents that
+ * only an `Operation` return type can express. Cancels a task, out-of-band by id. Drains any in-
+ * progress work and moves the task to CANCELLED. Use this when there is no active stream (e.g. a
+ * scheduled or background task) or when a caller other than the streaming client cancels. A task
+ * may also be cancelled in-band via the bidi cancel_task end_request; the two paths are equivalent.
+ * Cancellation semantics: * Idempotent: cancelling an already-terminal task is a no-op that returns
+ * the current Task; concurrent/duplicate cancels collapse to one CANCELLED. * First terminal state
+ * wins: once the task is CANCELLED/COMPLETED/FAILED, later cancels have no effect. * Cancel takes
+ * precedence over complete_task: a cancel arriving while (or after) a client half-closes with
+ * complete_task still drives the task to CANCELLED rather than letting it finish.
*
- * Create a request for the method "operations.cancel".
+ * Create a request for the method "tasks.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.
+ * @param name Required. The name of the task to cancel. Format:
+ * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest}
* @return the request
*/
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
+ public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelTaskRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
initialize(result);
return result;
}
- public class Cancel extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent agent that owns this task. Format: + projects/{project}/locations/{location}/agents/{agent} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent agent that owns this task. Format: + * projects/{project}/locations/{location}/agents/{agent} + */ + 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/[^/]+/agents/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Optional idempotency token to guarantee the task is created only once. + * Suggest a UUID. A create carrying a token that a live task of the same agent already + * holds fails with `ALREADY_EXISTS`, naming that task in the response. The token is + * free again once that task finishes. + */ + @com.google.api.client.util.Key + private java.lang.String uniqueCreationToken; + + /** Optional. Optional idempotency token to guarantee the task is created only once. Suggest a UUID. A + create carrying a token that a live task of the same agent already holds fails with + `ALREADY_EXISTS`, naming that task in the response. The token is free again once that task + finishes. + */ + public java.lang.String getUniqueCreationToken() { + return uniqueCreationToken; + } + + /** + * Optional. Optional idempotency token to guarantee the task is created only once. + * Suggest a UUID. A create carrying a token that a live task of the same agent already + * holds fails with `ALREADY_EXISTS`, naming that task in the response. The token is + * free again once that task finishes. + */ + public Create setUniqueCreationToken(java.lang.String uniqueCreationToken) { + this.uniqueCreationToken = uniqueCreationToken; + return this; + } + + /** + * Optional. How the user's input reached the agent. Leave unset when the user talks to + * the agent directly in an AI-native interface. + */ + @com.google.api.client.util.Key("userContext.channel") + private java.lang.String userContextChannel; + + /** Optional. How the user's input reached the agent. Leave unset when the user talks to the agent + directly in an AI-native interface. + */ + public java.lang.String getUserContextChannel() { + return userContextChannel; + } + + /** + * Optional. How the user's input reached the agent. Leave unset when the user talks to + * the agent directly in an AI-native interface. + */ + public Create setUserContextChannel(java.lang.String userContextChannel) { + this.userContextChannel = userContextChannel; + return this; + } + + /** + * Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". + * Must be no more precise than city level; never send street addresses, postal codes, + * or coordinates. The agent uses it for location-dependent requests, e.g. weather or + * nearby places. + */ + @com.google.api.client.util.Key("userContext.location") + private java.lang.String userContextLocation; + + /** Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". Must be no more + precise than city level; never send street addresses, postal codes, or coordinates. The agent uses + it for location-dependent requests, e.g. weather or nearby places. + */ + public java.lang.String getUserContextLocation() { + return userContextLocation; + } + + /** + * Optional. The user's coarse, human-readable location, e.g. "Mountain View, CA, US". + * Must be no more precise than city level; never send street addresses, postal codes, + * or coordinates. The agent uses it for location-dependent requests, e.g. weather or + * nearby places. + */ + public Create setUserContextLocation(java.lang.String userContextLocation) { + this.userContextLocation = userContextLocation; + return this; + } + + /** + * Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses + * it to interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + @com.google.api.client.util.Key("userContext.timeZone") + private java.lang.String userContextTimeZone; + + /** Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses it to + interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + public java.lang.String getUserContextTimeZone() { + return userContextTimeZone; + } + + /** + * Optional. The user's IANA time zone name, e.g. "America/Los_Angeles". The agent uses + * it to interpret and present dates and times, e.g. to resolve "tomorrow morning". + */ + public Create setUserContextTimeZone(java.lang.String userContextTimeZone) { + this.userContextTimeZone = userContextTimeZone; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a task. Long-running because deletion cascades: it cancels any active run (WORKING / + * REQUIRES_ACTION / SUSPENDED tasks are cancelled-then-deleted, not rejected), and cleans up the + * task's bound resources -- environment, generated artifacts, and the runtime trajectory/sessions. + * The operation completes when the cascade finishes; on success the response is + * google.protobuf.Empty. + * + * Create a request for the method "tasks.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. + * @param name Required. The name of the task to delete. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -52473,19 +54222,21 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest{@link DeleteArtifact#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param task Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest} + * @since 1.13 + */ + protected DeleteArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteTaskArtifactResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } + + @Override + public DeleteArtifact set$Xgafv(java.lang.String $Xgafv) { + return (DeleteArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteArtifact setAccessToken(java.lang.String accessToken) { + return (DeleteArtifact) super.setAccessToken(accessToken); + } + + @Override + public DeleteArtifact setAlt(java.lang.String alt) { + return (DeleteArtifact) super.setAlt(alt); + } + + @Override + public DeleteArtifact setCallback(java.lang.String callback) { + return (DeleteArtifact) super.setCallback(callback); + } + + @Override + public DeleteArtifact setFields(java.lang.String fields) { + return (DeleteArtifact) super.setFields(fields); + } + + @Override + public DeleteArtifact setKey(java.lang.String key) { + return (DeleteArtifact) super.setKey(key); + } + + @Override + public DeleteArtifact setOauthToken(java.lang.String oauthToken) { + return (DeleteArtifact) super.setOauthToken(oauthToken); + } + + @Override + public DeleteArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteArtifact setQuotaUser(java.lang.String quotaUser) { + return (DeleteArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteArtifact setUploadType(java.lang.String uploadType) { + return (DeleteArtifact) super.setUploadType(uploadType); + } + + @Override + public DeleteArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** Required. The task to delete from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The task to delete from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public DeleteArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } + + @Override + public DeleteArtifact set(String parameterName, Object value) { + return (DeleteArtifact) super.set(parameterName, value); + } + } + /** + * Downloads a file. The response body is the file's bytes, with the file's own media type as the + * `Content-Type` and a `Content-Disposition` that names the file. Media is the default and only + * representation, so no `alt` parameter is needed. A preview sets `processing_config` and gets a + * rendition of the file in place of the file, such as a PDF of a .pptx: the response body is the + * rendition, with its own media type as the `Content-Type` and a `Content-Disposition` name that + * ends in its extension. Without `processing_config` the response is always the stored file. + * + * Create a request for the method "tasks.download". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Download#execute()} method to invoke the remote operation. + * + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request + */ + public Download download(java.lang.String name) throws java.io.IOException { + Download result = new Download(name); + initialize(result); + return result; + } + + public class Download extends AiplatformRequest{@link + * Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Download(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GdataMedia.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); + } + + @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 Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); + } + + @Override + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); + } + + @Override + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); + } + + @Override + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); + } + + @Override + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); + } + + @Override + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The task or collaborative project to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The task or collaborative project to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Download 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.md`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 + * characters, and not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of a file in the task's workspace, e.g. `/workspace/report.md`, or, for a + collaborative project, under `/workspace/project`, e.g. `/workspace/project/report.md`. Must be + under `/workspace`, at most 1024 characters, and not contain a `..` segment. Accepts + `TaskArtifactFile.path` as-is. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of a file in the task's workspace, e.g. + * `/workspace/report.md`, or, for a collaborative project, under `/workspace/project`, + * e.g. `/workspace/project/report.md`. Must be under `/workspace`, at most 1024 + * characters, and not contain a `..` segment. Accepts `TaskArtifactFile.path` as-is. + */ + public Download setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, + * e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or + * .csv, as JSON describing its sheets and cells, from which a client draws the workbook + * as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type of the rendition: * `application/pdf`: the file as a PDF, e.g. of a .docx, + .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON describing its + sheets and cells, from which a client draws the workbook as a grid. Any other value fails with + `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type of the rendition: * `application/pdf`: the file as a PDF, + * e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or + * .csv, as JSON describing its sheets and cells, from which a client draws the workbook + * as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + public Download setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; + return this; + } + + @Override + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); + } + } + /** + * Downloads a file from a task's workspace as a stream of chunks. A server-streaming RPC. The + * response body is the file's raw bytes, with the file's own media type as the `Content-Type`. At + * most 1 GiB. Like ListTaskArtifacts, reads from the running sandbox when there is one, so a file + * the agent has just written is returned even before it reaches storage. + * + * Create a request for the method "tasks.downloadArtifact". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DownloadArtifact#execute()} method to invoke the remote operation. + * + * @param task Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @return the request + */ + public DownloadArtifact downloadArtifact(java.lang.String task) throws java.io.IOException { + DownloadArtifact result = new DownloadArtifact(task); + initialize(result); + return result; + } + + public class DownloadArtifact extends AiplatformRequest{@link DownloadArtifact#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param task Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @since 1.13 + */ + protected DownloadArtifact(java.lang.String task) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } + + @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 DownloadArtifact set$Xgafv(java.lang.String $Xgafv) { + return (DownloadArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public DownloadArtifact setAccessToken(java.lang.String accessToken) { + return (DownloadArtifact) super.setAccessToken(accessToken); + } + + @Override + public DownloadArtifact setAlt(java.lang.String alt) { + return (DownloadArtifact) super.setAlt(alt); + } + + @Override + public DownloadArtifact setCallback(java.lang.String callback) { + return (DownloadArtifact) super.setCallback(callback); + } + + @Override + public DownloadArtifact setFields(java.lang.String fields) { + return (DownloadArtifact) super.setFields(fields); + } + + @Override + public DownloadArtifact setKey(java.lang.String key) { + return (DownloadArtifact) super.setKey(key); + } + + @Override + public DownloadArtifact setOauthToken(java.lang.String oauthToken) { + return (DownloadArtifact) super.setOauthToken(oauthToken); + } + + @Override + public DownloadArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DownloadArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public DownloadArtifact setQuotaUser(java.lang.String quotaUser) { + return (DownloadArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public DownloadArtifact setUploadType(java.lang.String uploadType) { + return (DownloadArtifact) super.setUploadType(uploadType); + } + + @Override + public DownloadArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (DownloadArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** Required. The task to download from. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The task to download from. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public DownloadArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } + + /** + * Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be + * under "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be under + "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + public java.lang.String getPath() { + return path; + } + + /** + * Required. Absolute path of the file to read, e.g. "/workspace/report.md". Must be + * under "/workspace", at most 1024 characters, and not contain a ".." segment. + */ + public DownloadArtifact setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a + * .docx or .pptx. * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing + * its sheets and cells, from which a client draws the workbook as a grid. Any other + * value fails with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key("processingConfig.outputMimeType") + private java.lang.String processingConfigOutputMimeType; + + /** Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a .docx or .pptx. + * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing its sheets and cells, from + which a client draws the workbook as a grid. Any other value fails with `INVALID_ARGUMENT`. + */ + public java.lang.String getProcessingConfigOutputMimeType() { + return processingConfigOutputMimeType; + } + + /** + * Required. The media type to return: * `application/pdf`: the file as a PDF, e.g. a + * .docx or .pptx. * `application/json`: a spreadsheet, e.g. a .xlsx, as JSON describing + * its sheets and cells, from which a client draws the workbook as a grid. Any other + * value fails with `INVALID_ARGUMENT`. + */ + public DownloadArtifact setProcessingConfigOutputMimeType(java.lang.String processingConfigOutputMimeType) { + this.processingConfigOutputMimeType = processingConfigOutputMimeType; + return this; + } + + @Override + public DownloadArtifact set(String parameterName, Object value) { + return (DownloadArtifact) super.set(parameterName, value); + } + } + /** + * Gets a task. + * + * Create a request for the method "tasks.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. + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -52605,34 +55008,35 @@ public Get get(java.lang.String name) throws java.io.IOException { 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. + * @param name Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} * @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); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @@ -52701,22 +55105,32 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name of the task to retrieve. Both name forms are accepted: * + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + projects/{project}/locations/{location}/tasks/{task} */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The name of the task to retrieve. Both name forms are accepted: * + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * + * projects/{project}/locations/{location}/tasks/{task} + */ 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } this.name = name; return this; @@ -52728,51 +55142,55 @@ public Get set(String parameterName, Object value) { } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists tasks under a parent. Supports filtering (e.g. by status or assigned_agent) so a surface + * can show "my tasks". * - * Create a request for the method "operations.list". + * Create a request for the method "tasks.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. + * @param parent Required. The parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + 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's parent resource. + * @param parent Required. The parent to list tasks under. Both forms are accepted and scope the listing differently: + * * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that agent. + * * projects/{project}/locations/{location} -- all tasks in the location. * @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.GoogleCloudAiplatformV1beta1ListTasksResponse.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/[^/]+/apps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); } } @@ -52841,2786 +55259,2437 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The parent to list tasks under. Both forms are accepted and scope the + * listing differently: * projects/{project}/locations/{location}/agents/{agent} -- + * tasks assigned to that agent. * projects/{project}/locations/{location} -- all tasks + * in the location. + */ @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 parent to list tasks under. Both forms are accepted and scope the listing + differently: * projects/{project}/locations/{location}/agents/{agent} -- tasks assigned to that + agent. * projects/{project}/locations/{location} -- all tasks in the location. */ - 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 parent to list tasks under. Both forms are accepted and scope the + * listing differently: * projects/{project}/locations/{location}/agents/{agent} -- + * tasks assigned to that agent. * projects/{project}/locations/{location} -- all tasks + * in the 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/[^/]+/apps/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** + * Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much + * of a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match + * tasks with the given label key and value. Multiple label filters can be combined with + * AND. Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar + * OR labels.foo=baz". Status filters restrict the listing to tasks in the given + * statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined + * with OR, e.g., "status=WORKING OR status=IDLE". Both page normally via + * `page_size`/`page_token`, and both are ordered by `order_by` (default "create_time + * desc"), not by tree shape. A whole-tree page is therefore not a subtree: a child can + * arrive before its parent, so the client buffers by `parent_task_id` and renders as + * parents resolve. + */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much of a task tree + to fetch: * "parent_task_id=" -- direct children only (progressive disclosure, one level per call). + * "root_task_id=" -- the whole tree in one flat collection. Label filters support filtering by task + labels: * "labels.=" -- match tasks with the given label key and value. Multiple label filters can + be combined with AND. Multiple values for the same key can be combined with OR, e.g., + "labels.foo=bar OR labels.foo=baz". Status filters restrict the listing to tasks in the given + statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined with OR, e.g., + "status=WORKING OR status=IDLE". Both page normally via `page_size`/`page_token`, and both are + ordered by `order_by` (default "create_time desc"), not by tree shape. A whole-tree page is + therefore not a subtree: a child can arrive before its parent, so the client buffers by + `parent_task_id` and renders as parents resolve. */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** + * Optional. A filter expression, e.g. "status=WORKING". Lineage filters pick how much + * of a task tree to fetch: * "parent_task_id=" -- direct children only (progressive + * disclosure, one level per call). * "root_task_id=" -- the whole tree in one flat + * collection. Label filters support filtering by task labels: * "labels.=" -- match + * tasks with the given label key and value. Multiple label filters can be combined with + * AND. Multiple values for the same key can be combined with OR, e.g., "labels.foo=bar + * OR labels.foo=baz". Status filters restrict the listing to tasks in the given + * statuses: * "status=" -- e.g. "status=WORKING". Multiple statuses can be combined + * with OR, e.g., "status=WORKING OR status=IDLE". Both page normally via + * `page_size`/`page_token`, and both are ordered by `order_by` (default "create_time + * desc"), not by tree shape. A whole-tree page is therefore not a subtree: a child can + * arrive before its parent, so the client buffers by `parent_task_id` and renders as + * parents resolve. + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` and + `update_time`. Defaults to "create_time desc". + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Sort order, e.g. "create_time desc". The sortable fields are `create_time` + * and `update_time`. Defaults to "create_time desc". + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** Optional. The maximum number of tasks to return. The service may return fewer. If unspecified (or + <= 0), at most 50 are returned. The maximum is 100; larger values are capped to 100. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** + * Optional. The maximum number of tasks to return. The service may return fewer. If + * unspecified (or <= 0), at most 50 are returned. The maximum is 100; larger values are + * capped to 100. + */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** Optional. A page token from a previous ListTasks call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. A page token from a previous ListTasks call. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** Optional. A page token from a previous ListTasks call. */ 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. + * Lists the files in a task's workspace. By default only the immediate children of `path` are + * returned; set `recursive` to descend into subdirectories. Entries are returned in breadth-first + * order. While the task's sandbox is running, paths it writes locally are read from the sandbox so + * the listing reflects files not yet synced to storage; otherwise they are read from storage. Which + * one served a request is not visible to the caller. * - * Create a request for the method "operations.wait". + * Create a request for the method "tasks.listArtifacts". * * 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 ListArtifacts#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @param task Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public ListArtifacts listArtifacts(java.lang.String task) throws java.io.IOException { + ListArtifacts result = new ListArtifacts(task); 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.
+ * optional parameters, call the {@link ListArtifacts#execute()} method to invoke the remote + * operation.{@link ListArtifacts#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* - * @param name The name of the operation resource to wait on. + * @param task Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} * @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."); + protected ListArtifacts(java.lang.String task) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListTaskArtifactsResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public ListArtifacts set$Xgafv(java.lang.String $Xgafv) { + return (ListArtifacts) super.set$Xgafv($Xgafv); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public ListArtifacts setAccessToken(java.lang.String accessToken) { + return (ListArtifacts) super.setAccessToken(accessToken); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public ListArtifacts setAlt(java.lang.String alt) { + return (ListArtifacts) super.setAlt(alt); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public ListArtifacts setCallback(java.lang.String callback) { + return (ListArtifacts) super.setCallback(callback); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public ListArtifacts setFields(java.lang.String fields) { + return (ListArtifacts) super.setFields(fields); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public ListArtifacts setKey(java.lang.String key) { + return (ListArtifacts) super.setKey(key); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public ListArtifacts setOauthToken(java.lang.String oauthToken) { + return (ListArtifacts) super.setOauthToken(oauthToken); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public ListArtifacts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListArtifacts) super.setPrettyPrint(prettyPrint); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public ListArtifacts setQuotaUser(java.lang.String quotaUser) { + return (ListArtifacts) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to wait on. */ + @Override + public ListArtifacts setUploadType(java.lang.String uploadType) { + return (ListArtifacts) super.setUploadType(uploadType); + } + + @Override + public ListArtifacts setUploadProtocol(java.lang.String uploadProtocol) { + return (ListArtifacts) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String task; - /** The name of the operation resource to wait on. + /** Required. The task whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} */ - public java.lang.String getName() { - return name; + public java.lang.String getTask() { + return task; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** + * Required. The task whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public ListArtifacts setTask(java.lang.String task) { 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); } - this.name = name; + this.task = task; 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. + * Optional. The maximum number of entries to return. The service may return fewer. If + * unspecified (or <= 0), at most 100 are returned. The maximum is 1000; larger values + * are capped to 1000. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.Integer pageSize; - /** 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. + /** Optional. The maximum number of entries to return. The service may return fewer. If unspecified (or + <= 0), at most 100 are returned. The maximum is 1000; larger values are capped to 1000. */ - public String getTimeout() { - return timeout; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * 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. + * Optional. The maximum number of entries to return. The service may return fewer. If + * unspecified (or <= 0), at most 100 are returned. The maximum is 1000; larger values + * are capped to 1000. */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + public ListArtifacts setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Optional. A page token from a previous ListTaskArtifacts call. The workspace is live: + * the agent can write between pages, so a paged listing is not a snapshot. An entry + * added during the walk may or may not appear, and one removed may still be listed and + * then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from a previous ListTaskArtifacts call. The workspace is live: the agent can + write between pages, so a paged listing is not a snapshot. An entry added during the walk may or + may not appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; } - } - } - } - /** - * 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();
- }
+ /**
+ * Optional. A page token from a previous ListTaskArtifacts call. The workspace is live:
+ * the agent can write between pages, so a paged listing is not a snapshot. An entry
+ * added during the walk may or may not appear, and one removed may still be listed and
+ * then fail to download.
+ */
+ public ListArtifacts setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
- /**
- * The "batchPredictionJobs" collection of methods.
- */
- public class BatchPredictionJobs {
+ /**
+ * Optional. Absolute path of the directory to list, e.g. "/workspace/userdata". Must be
+ * "/workspace" or under it, at most 1024 characters, and not contain a ".." segment.
+ * Defaults to "/workspace".
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String path;
- /**
- * 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".
- *
- * 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}
- * @return the request
- */
- 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;
- }
+ /** Optional. Absolute path of the directory to list, e.g. "/workspace/userdata". Must be "/workspace"
+ or under it, at most 1024 characters, and not contain a ".." segment. Defaults to "/workspace".
+ */
+ public java.lang.String getPath() {
+ return path;
+ }
- 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 Patch#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 Identifier. Resource name of the task. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @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 Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + 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. Resource name of the task. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) 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 Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) 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 Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) 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 Patch setUploadType(java.lang.String uploadType) { + return (Patch) 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 Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) 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.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. * - * @param 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 + * @param name Required. The name of the task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest} + * @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 Resume resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest content) throws java.io.IOException { + Resume result = new Resume(name, content); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Resume extends AiplatformRequest{@link + * Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the task to resume. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest} + * @since 1.13 + */ + protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeTaskRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Task.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) 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 Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) 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 Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) 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 Resume setUploadType(java.lang.String uploadType) { + return (Resume) 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 Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) 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 Stream#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 Required. The name of the task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @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 Stream stream(java.lang.String name) throws java.io.IOException { + Stream result = new Stream(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Stream extends AiplatformRequest{@link + * Stream#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 task to stream. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @since 1.13 + */ + protected Stream(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1TaskServerEventBatch.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @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 Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) 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 Stream setKey(java.lang.String key) { + return (Stream) 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 Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) 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 Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) 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 Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) 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 Suspend#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 Required. The name of the task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest} + * @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(); + public Suspend suspend(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest content) throws java.io.IOException { + Suspend result = new Suspend(name, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Suspend extends AiplatformRequest{@link + * Suspend#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 task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest} + * @since 1.13 + */ + protected Suspend(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SuspendTaskRequest 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Suspend set$Xgafv(java.lang.String $Xgafv) { + return (Suspend) super.set$Xgafv($Xgafv); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Suspend setAccessToken(java.lang.String accessToken) { + return (Suspend) super.setAccessToken(accessToken); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Suspend setAlt(java.lang.String alt) { + return (Suspend) super.setAlt(alt); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Suspend setCallback(java.lang.String callback) { + return (Suspend) super.setCallback(callback); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Suspend setFields(java.lang.String fields) { + return (Suspend) super.setFields(fields); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Suspend setKey(java.lang.String key) { + return (Suspend) super.setKey(key); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Suspend setOauthToken(java.lang.String oauthToken) { + return (Suspend) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Suspend) super.setPrettyPrint(prettyPrint); + } - /** - * 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 Suspend setQuotaUser(java.lang.String quotaUser) { + return (Suspend) super.setQuotaUser(quotaUser); + } - /** 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 Suspend setUploadType(java.lang.String uploadType) { + return (Suspend) super.setUploadType(uploadType); + } - /** - * 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/[^/]+/batchPredictionJobs/[^/]+$"); + @Override + public Suspend setUploadProtocol(java.lang.String uploadProtocol) { + return (Suspend) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists BatchPredictionJobs in a Location. - * - * 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 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 { - List result = new List(parent); - initialize(result); - return result; - } + /** + * Required. The name of the task to suspend. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + @com.google.api.client.util.Key + private java.lang.String name; - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Upload#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}` - * @since 1.13 + *+ * This method should be used for uploading media content. + *
+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails */ - 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public Upload upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(name, content, mediaContent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Upload extends AiplatformRequest{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} + * @since 1.13 + */ + protected Upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Uploads a file. The file is sent as media: post it to this method's URL with an `/upload` + * prefix, e.g. `/upload/v1beta1/{name}:upload`, carrying `path` as request metadata and the + * file's bytes as the media content. The task must not be in a terminal state, and an existing + * file at `path` is replaced. At most 10 GiB. + * + * Create a request for the method "tasks.upload". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param name Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(Aiplatform.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadArtifactResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); + } - /** - * 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; + @Override + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); + } - /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); + } - /** - * 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(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } - 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; + /** + * Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** 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; - } + /** Required. The task or collaborative project to upload to. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The task or collaborative project to upload to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Upload 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); + } + } /** - * 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:*` + * Uploads a file into a task's workspace. A client-streaming RPC: the request body is the file's + * raw bytes, relayed to storage a chunk at a time, so neither ESF nor this server holds the whole + * file. A broken connection restarts the upload from zero. `path` must be an absolute path under + * `/workspace/userdata/`. The task must not be in a terminal state. An existing file at `path` is + * replaced. At most 1 GiB. + * + * Create a request for the method "tasks.uploadArtifact". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UploadArtifact#execute()} method to invoke the remote operation. + * + * @param task Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @return the request */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + public UploadArtifact uploadArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + UploadArtifact result = new UploadArtifact(task, content); + initialize(result); + return result; } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class UploadArtifact extends AiplatformRequest{@link UploadArtifact#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param task Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @since 1.13 + */ + protected UploadArtifact(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1TaskArtifactFile.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** 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; - } + @Override + public UploadArtifact set$Xgafv(java.lang.String $Xgafv) { + return (UploadArtifact) super.set$Xgafv($Xgafv); + } - /** - * 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; - } + @Override + public UploadArtifact setAccessToken(java.lang.String accessToken) { + return (UploadArtifact) super.setAccessToken(accessToken); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public UploadArtifact setAlt(java.lang.String alt) { + return (UploadArtifact) super.setAlt(alt); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public UploadArtifact setCallback(java.lang.String callback) { + return (UploadArtifact) super.setCallback(callback); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public UploadArtifact setFields(java.lang.String fields) { + return (UploadArtifact) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + @Override + public UploadArtifact setKey(java.lang.String key) { + return (UploadArtifact) super.setKey(key); + } - } - /** - * 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();
- }
+ @Override
+ public UploadArtifact setOauthToken(java.lang.String oauthToken) {
+ return (UploadArtifact) super.setOauthToken(oauthToken);
+ }
- /**
- * The "cachedContents" collection of methods.
- */
- public class CachedContents {
+ @Override
+ public UploadArtifact setPrettyPrint(java.lang.Boolean prettyPrint) {
+ return (UploadArtifact) super.setPrettyPrint(prettyPrint);
+ }
- /**
- * 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.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}
- * @return the request
- */
- 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;
- }
+ @Override
+ public UploadArtifact setQuotaUser(java.lang.String quotaUser) {
+ return (UploadArtifact) super.setQuotaUser(quotaUser);
+ }
- public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent resource where the cached content will be created - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} - * @since 1.13 - */ - 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** Required. The task to upload into. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public java.lang.String getTask() { + return task; } - } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + /** + * Required. The task to upload into. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + */ + public UploadArtifact setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** + * Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/" and at most 1024 characters; relative paths and paths + * containing a ".." segment are rejected with INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private java.lang.String path; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be under + "/workspace/userdata/" and at most 1024 characters; relative paths and paths containing a ".." + segment are rejected with INVALID_ARGUMENT. + */ + public java.lang.String getPath() { + return path; + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * Required. Absolute destination path, e.g. "/workspace/userdata/input.csv". Must be + * under "/workspace/userdata/" and at most 1024 characters; relative paths and paths + * containing a ".." segment are rejected with INVALID_ARGUMENT. + */ + public UploadArtifact setPath(java.lang.String path) { + this.path = path; + return this; + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + @Override + public UploadArtifact set(String parameterName, Object value) { + return (UploadArtifact) super.set(parameterName, value); + } } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + /** + * An accessor for creating requests from the Artifacts collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Artifacts.List request = aiplatform.artifacts().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Artifacts artifacts() {
+ return new Artifacts();
}
- @Override
- public Create setOauthToken(java.lang.String oauthToken) {
- return (Create) super.setOauthToken(oauthToken);
- }
+ /**
+ * The "artifacts" collection of methods.
+ */
+ public class Artifacts {
- @Override
- public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
- return (Create) super.setPrettyPrint(prettyPrint);
- }
+ /**
+ * Adds a file, folder or site stored in Google Drive, OneDrive, SharePoint or another third-party
+ * store as an artifact. The service persists `link_json_metadata` to Cloud Storage as a JSON
+ * metadata reference (a `.link.json` file), and links it to a parent resource: a task, named by
+ * `task`, or a collaborative project, named by `collaborative_project`. This method is idempotent
+ * with respect to the linked entity, identified by `link_json_metadata.provider` and
+ * `link_json_metadata.source_artifact_id`, or `link_json_metadata.uri` when `source_artifact_id` is
+ * unset: adding an entity that the parent already has does not add another artifact, and returns
+ * the same `artifact_id`.
+ *
+ * Create a request for the method "artifacts.add".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Add#execute()} method to invoke the remote operation.
+ *
+ * @param task Optional. The task to link the file to. Format:
+ * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task`
+ * and `collaborative_project` must be set.
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest}
+ * @return the request
+ */
+ public Add add(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) throws java.io.IOException {
+ Add result = new Add(task, content);
+ initialize(result);
+ return result;
+ }
- @Override
- public Create setQuotaUser(java.lang.String quotaUser) {
- return (Create) super.setQuotaUser(quotaUser);
- }
+ public class Add extends AiplatformRequest+ * {@link Add#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param task Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` + * and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @since 1.13 + */ + protected Add(java.lang.String task, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactResponse.class); + this.task = com.google.api.client.util.Preconditions.checkNotNull(task, "Required parameter task must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** Required. The parent resource where the cached content will be created - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Add set$Xgafv(java.lang.String $Xgafv) { + return (Add) super.set$Xgafv($Xgafv); + } - /** 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(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Add setAccessToken(java.lang.String accessToken) { + return (Add) super.setAccessToken(accessToken); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes cached content - * - * 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 resource name referring to the cached content - * @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 Add setAlt(java.lang.String alt) { + return (Add) super.setAlt(alt); + } - 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 referring to the cached content - * @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/[^/]+/cachedContents/[^/]+$"); - } - } + @Override + public Add setOauthToken(java.lang.String oauthToken) { + return (Add) super.setOauthToken(oauthToken); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Add setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Add) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Add setQuotaUser(java.lang.String quotaUser) { + return (Add) super.setQuotaUser(quotaUser); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Add setUploadType(java.lang.String uploadType) { + return (Add) super.setUploadType(uploadType); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Add setUploadProtocol(java.lang.String uploadProtocol) { + return (Add) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of + * `task` and `collaborative_project` must be set. + */ + @com.google.api.client.util.Key + private java.lang.String task; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** Optional. The task to link the file to. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of `task` and + `collaborative_project` must be set. + */ + public java.lang.String getTask() { + return task; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** + * Optional. The task to link the file to. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} Exactly one of + * `task` and `collaborative_project` must be set. + */ + public Add setTask(java.lang.String task) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TASK_PATTERN.matcher(task).matches(), + "Parameter task must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.task = task; + return this; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Add set(String parameterName, Object value) { + return (Add) super.set(parameterName, value); + } + } + /** + * Lists the files and directories in a task's workspace. By default only the immediate children of + * `path` are returned; set `recursive` to descend into subdirectories. Entries that match `filter` + * are returned in breadth-first order. While the task's sandbox is running, paths it writes locally + * are read from the sandbox so the listing reflects files not yet synced to storage; otherwise they + * are read from storage. Which one served a request is not visible to the caller. + * + * Create a request for the method "artifacts.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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @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 Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + 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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - /** Required. The resource name referring to the cached content - */ - public java.lang.String getName() { - return name; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Required. The resource name referring to the cached content */ - 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets cached content configurations - * - * Create a request for the method "cachedContents.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 referring to the cached content - * @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 set$Xgafv(java.lang.String $Xgafv) { + return (List) 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 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.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/[^/]+$"); - } - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Required. The task or collaborative project whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE + * AND mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- + * `FILE` or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` + * -- a media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so + * `"image"` matches every image type. Directories have an empty `mime_type`. + * Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + * parentheses. A filter that is not valid AIP-160, or that uses another field or + * operator, is rejected with `INVALID_ARGUMENT`. The filter selects which entries are + * returned, not which directories are walked: with `recursive`, `type = FILE` still + * returns the files in subdirectories. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND mime_type = + "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` or `DIRECTORY` (see + `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a media type in double quotes, e.g. + `"text/csv"`. `*` is a wildcard, so `"image"` matches every image type. Directories have an empty + `mime_type`. Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + parentheses. A filter that is not valid AIP-160, or that uses another field or operator, is + rejected with `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + directories are walked: with `recursive`, `type = FILE` still returns the files in subdirectories. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE + * AND mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- + * `FILE` or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` + * -- a media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so + * `"image"` matches every image type. Directories have an empty `mime_type`. + * Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + * parentheses. A filter that is not valid AIP-160, or that uses another field or + * operator, is rejected with `INVALID_ARGUMENT`. The filter selects which entries are + * returned, not which directories are walked: with `recursive`, `type = FILE` still + * returns the files in subdirectories. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The maximum number of entries to return. The service may return fewer + * than this value, including none on a page that is not the last. If unspecified or + * 0, at most 100 are returned. The maximum is 1000; values above 1000 are coerced to + * 1000. A negative value is rejected with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Required. The resource name referring to the cached content */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. The maximum number of entries to return. The service may return fewer than this value, + including none on a page that is not the last. If unspecified or 0, at most 100 are returned. The + maximum is 1000; values above 1000 are coerced to 1000. A negative value is rejected with + `INVALID_ARGUMENT`. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Required. The resource name referring to the cached content - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. The maximum number of entries to return. The service may return fewer + * than this value, including none on a page that is not the last. If unspecified or + * 0, at most 100 are returned. The maximum is 1000; values above 1000 are coerced to + * 1000. A negative value is rejected with `INVALID_ARGUMENT`. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** 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/[^/]+/cachedContents/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. + * Provide this to retrieve the subsequent page. When paginating, all other fields of + * the request except `page_size` must match the call that provided the page token. + * The workspace is live: the agent can write between pages, so a paged listing is not + * a snapshot. An entry added during the walk may or may not appear, and one removed + * may still be listed and then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists cached contents in a project - * - * 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 parent, which owns this collection of cached contents. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + /** Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide this to + retrieve the subsequent page. When paginating, all other fields of the request except `page_size` + must match the call that provided the page token. The workspace is live: the agent can write + between pages, so a paged listing is not a snapshot. An entry added during the walk may or may not + appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; + } - 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. - * @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); - 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/[^/]+$"); + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must + * be `/workspace` or under it, at most 1024 characters, and not contain a `..` + * segment. Defaults to `/workspace`. + */ + public List setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + @com.google.api.client.util.Key + private java.lang.Boolean recursive; + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. + */ + public java.lang.Boolean getRecursive() { + return recursive; + } + + /** Optional. If `true`, descends into subdirectories. Results are breadth-first. */ + public List setRecursive(java.lang.Boolean recursive) { + this.recursive = recursive; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Returns a file converted for a preview, such as a PDF of a .pptx. A server-streaming RPC. The + * response body is the converted file's bytes, with its media type as the `Content-Type`. The + * server converts the file as it is stored now, on every call, and stores nothing. A PDF asked for + * as a PDF is returned as stored. Fails with `INVALID_ARGUMENT` or `FAILED_PRECONDITION` when the + * file cannot be converted (an unsupported format, too large, or unreadable), with + * `DEADLINE_EXCEEDED` when the conversion takes too long, and with `UNAVAILABLE` when conversion is + * busy or not available; the last two may succeed on a retry. + * + * Create a request for the method "artifacts.preview". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Preview#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request + */ + public Preview preview(java.lang.String parent) throws java.io.IOException { + Preview result = new Preview(parent); + initialize(result); + return result; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Preview extends AiplatformRequest{@link + * Preview#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Preview(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); + } - /** Required. The parent, which owns this collection of cached contents. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent, which owns this collection of cached contents. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); + } - /** 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(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); + } - /** - * 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. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); + } - /** 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; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private 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. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - /** - * 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; + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Preview 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + 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. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws + * the workbook as a grid. + */ + @com.google.api.client.util.Key + private java.lang.String outputMimeType; - /** - * 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; - } + /** Required. The media type to convert the file to: * `application/pdf`: the file as a PDF, e.g. of a + .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a .xlsx or .csv, as JSON + describing its sheets and cells, from which a client draws the workbook as a grid. + */ + public java.lang.String getOutputMimeType() { + return outputMimeType; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates cached content configurations - * - * Create a request for the method "cachedContents.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. 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 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; - } + /** + * Required. The media type to convert the file to: * `application/pdf`: the file as a + * PDF, e.g. of a .docx, .pptx or .xlsx. * `application/json`: a spreadsheet, e.g. a + * .xlsx or .csv, as JSON describing its sheets and cells, from which a client draws + * the workbook as a grid. + */ + public Preview setOutputMimeType(java.lang.String outputMimeType) { + this.outputMimeType = outputMimeType; + return this; + } - 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. 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 - */ - 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/[^/]+$"); + @Override + public Preview set(String parameterName, Object value) { + return (Preview) super.set(parameterName, value); + } + } + /** + * Deletes a file from a task's workspace. `path` must be an absolute path to a file in the task's + * workspace, under `/workspace/`, e.g. `/workspace/userdata/input.csv`. A path outside + * `/workspace/`, including a relative path, or a path with a `..` segment fails with + * `INVALID_ARGUMENT`. A directory path, or a task in a terminal state, fails with + * `FAILED_PRECONDITION`. A missing file fails with `NOT_FOUND` unless `allow_missing` is `true`, in + * which case the call succeeds and changes nothing. + * + * Create a request for the method "artifacts.remove". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Remove#execute()} method to invoke the remote operation. + * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @return the request + */ + public Remove remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) throws java.io.IOException { + Remove result = new Remove(parent, content); + initialize(result); + return result; } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Remove extends AiplatformRequest{@link + * Remove#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @since 1.13 + */ + protected Remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Remove set$Xgafv(java.lang.String $Xgafv) { + return (Remove) super.set$Xgafv($Xgafv); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Remove setAccessToken(java.lang.String accessToken) { + return (Remove) super.setAccessToken(accessToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Remove setAlt(java.lang.String alt) { + return (Remove) super.setAlt(alt); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Remove setCallback(java.lang.String callback) { + return (Remove) super.setCallback(callback); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Remove setFields(java.lang.String fields) { + return (Remove) super.setFields(fields); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Remove setKey(java.lang.String key) { + return (Remove) super.setKey(key); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Remove setOauthToken(java.lang.String oauthToken) { + return (Remove) super.setOauthToken(oauthToken); + } - /** - * 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 Remove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Remove) super.setPrettyPrint(prettyPrint); + } - /** 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 Remove setQuotaUser(java.lang.String quotaUser) { + return (Remove) super.setQuotaUser(quotaUser); + } - /** - * 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; - } + @Override + public Remove setUploadType(java.lang.String uploadType) { + return (Remove) super.setUploadType(uploadType); + } - /** Required. The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public Remove setUploadProtocol(java.lang.String uploadProtocol) { + return (Remove) super.setUploadProtocol(uploadProtocol); + } - /** Required. The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or projects/{pr + * oject}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Remove 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/[^/]+/agents/[^/]+/tasks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Remove set(String parameterName, Object value) { + return (Remove) 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. + * An accessor for creating requests from the Apps collection. * *The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.CustomJobs.List request = aiplatform.customJobs().list(parameters ...)}
+ * {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
*
*
* @return the resource collection
*/
- public CustomJobs customJobs() {
- return new CustomJobs();
+ public Apps apps() {
+ return new Apps();
}
/**
- * The "customJobs" collection of methods.
+ * The "apps" collection of methods.
*/
- public class CustomJobs {
+ public class Apps {
/**
- * 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".
+ * 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 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
+ * @return the resource collection
*/
- 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 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 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 + * @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.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); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + public class Cancel 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); - } - - @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 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; - - /** Required. The resource name of the Location to create the CustomJob in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * 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 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; - } - - 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 CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_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/[^/]+/customJobs/[^/]+$"); - } - } - - @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 CustomJob resource to be deleted. 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 resource to be deleted. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * 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 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; - } - - 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/[^/]+$"); - } - } - - @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 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 CustomJob resource. Format: - `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_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/[^/]+/customJobs/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists CustomJobs in a Location. - * - * 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 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}` - * @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 Location to list the CustomJobs 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.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(), - "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 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 resource name of the Location to list the CustomJobs from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to list the CustomJobs 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(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * 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:*` - */ - 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 - * 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. 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. 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. */ - @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
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
+ * {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DataLabelingJobs dataLabelingJobs() {
- return new DataLabelingJobs();
+ public BatchPredictionJobs batchPredictionJobs() {
+ return new BatchPredictionJobs();
}
/**
- * The "dataLabelingJobs" collection of methods.
+ * The "batchPredictionJobs" collection of methods.
*/
- public class DataLabelingJobs {
+ public class BatchPredictionJobs {
/**
- * Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
+ * 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 "dataLabelingJobs.cancel".
+ * 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 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}
+ * @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 Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest content) throws java.io.IOException {
+ 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;
@@ -56442,12 +58516,17 @@ public class Cancel extends AiplatformRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * @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.GoogleCloudAiplatformV1beta1DataLabelingJob.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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -56948,28 +59032,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * 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 name of the DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** 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 name of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * 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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -56981,14 +59065,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists DataLabelingJobs in a Location. + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "dataLabelingJobs.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 of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @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 { @@ -56997,28 +59082,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 of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @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.GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.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(), @@ -57093,21 +59179,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * 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 of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + /** 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 of the DataLabelingJob. Format: - * `projects/{project}/locations/{location}` + * 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()) { @@ -57121,24 +59208,26 @@ 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"` * + * 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. * `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:*` + `:` 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; @@ -57146,12 +59235,13 @@ public java.lang.String getFilter() { /** * 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"` * + * 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) { @@ -57159,29 +59249,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; @@ -57198,45 +59265,43 @@ public List setPageSize(java.lang.Integer pageSize) { return this; } - /** The standard list 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; - /** The standard list 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; } - /** The standard list 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. 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; @@ -57248,1146 +59313,809 @@ public List set(String parameterName, Object 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 {
+
/**
- * An accessor for creating requests from the Operations collection.
+ * Creates cached content, this call will initialize the cached content in the data storage, and
+ * users need to pay for the cache data storage.
*
- * 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.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 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 Operations operations() {
- return new Operations();
+ 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;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @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 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - 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 Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** Required. The parent resource where the cached content will be created */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** Required. The parent resource where the cached content will be created + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** 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(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes cached content + * + * 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 resource name referring to the cached content + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be deleted. - * @return the request + * @param name Required. The resource name referring to the cached content + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+/cachedContents/[^/]+$"); + } } - 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 Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** Required. The resource name referring to the cached content */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The resource name referring to the cached content + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** Required. The resource name referring to the cached content */ + 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/[^/]+/cachedContents/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets cached content configurations + * + * Create a request for the method "cachedContents.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 referring to the cached content + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param name Required. The resource name referring to the cached content + * @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.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 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/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Required. The resource name referring to the cached content */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The resource name referring to the cached content + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** 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/[^/]+/cachedContents/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists cached contents in a project + * + * 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 parent, which owns this collection of cached contents. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param parent Required. The parent, which owns this collection of cached contents. + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + 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(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The parent, which owns this collection of cached contents. */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Required. The parent, which owns this collection of cached contents. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** 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(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** 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; - } + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** 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; - } + /** 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 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/[^/]+/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 {
-
- /**
- * Assembles each row of a multimodal dataset and writes the result into a BigQuery table.
- *
- * 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); - } + /** + * 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; + } /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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 name; + private java.lang.String pageToken; - /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** 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 getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } /** - * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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 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; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Assemble set(String parameterName, Object value) { - return (Assemble) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Assesses the state or validity of the dataset with respect to a given use case. + * Updates cached content configurations * - * Create a request for the method "datasets.assess". + * Create a request for the method "cachedContents.patch". * * 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 Patch#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 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 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 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; } - public class Assess extends AiplatformRequest{@link - * Assess#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 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 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 */ - 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 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } } @Override - public Assess set$Xgafv(java.lang.String $Xgafv) { - return (Assess) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Assess setAccessToken(java.lang.String accessToken) { - return (Assess) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Assess setAlt(java.lang.String alt) { - return (Assess) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Assess setCallback(java.lang.String callback) { - return (Assess) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Assess setFields(java.lang.String fields) { - return (Assess) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Assess setKey(java.lang.String key) { - return (Assess) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Assess setOauthToken(java.lang.String oauthToken) { - return (Assess) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assess) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Assess setQuotaUser(java.lang.String quotaUser) { - return (Assess) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Assess setUploadType(java.lang.String uploadType) { - return (Assess) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Assess setUploadProtocol(java.lang.String uploadProtocol) { - return (Assess) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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; - /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** 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; } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Immutable. Identifier. The server-generated resource name of the cached content Format: + * projects/{project}/locations/{location}/cachedContents/{cached_content} */ - public Assess setName(java.lang.String name) { + 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/[^/]+$"); + "^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 Assess set(String parameterName, Object value) { - return (Assess) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the CollaborativeProjects collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.CollaborativeProjects.List request = aiplatform.collaborativeProjects().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public CollaborativeProjects collaborativeProjects() {
+ return new CollaborativeProjects();
+ }
+
+ /**
+ * The "collaborativeProjects" collection of methods.
+ */
+ public class CollaborativeProjects {
+
/**
- * Creates a Dataset.
+ * Creates a project owned by the caller.
*
- * Create a request for the method "datasets.create".
+ * Create a request for the method "collaborativeProjects.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 location to create the project in. Only `global` is supported. Format:
+ * `projects/{project}/locations/global`.
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject}
* @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.GoogleCloudAiplatformV1beta1CollaborativeProject content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -58395,15 +60123,15 @@ public Create create(java.lang.String parent, com.google.api.services.aiplatform
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.
- * - * @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.lang.String name; - - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public Export 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 Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); - } - } - /** - * Gets a Dataset. + * Gets a project. * - * Create a request for the method "datasets.get". + * Create a request for the method "collaborativeProjects.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 Dataset resource. + * @param name Required. The name of the project. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -58809,33 +60388,33 @@ public Get get(java.lang.String name) throws java.io.IOException { 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 Dataset resource. + * @param name Required. The name of the project. * @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); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject.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/[^/]+/collaborativeProjects/[^/]+$"); } } @@ -58904,1610 +60483,1553 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the Dataset resource. */ + /** Required. The name of the project. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Dataset resource. + /** Required. The name of the project. */ public java.lang.String getName() { return name; } - /** Required. The name of the Dataset resource. */ + /** Required. The name of the project. */ 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/[^/]+/collaborativeProjects/[^/]+$"); } 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); } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Lists the caller's projects in a location, most recently created first. * - * Create a request for the method "datasets.getIamPolicy". + * Create a request for the method "collaborativeProjects.list". * * 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. + * parameters, call the {@link List#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. + * @param parent Required. The location to list projects from. Format: `projects/{project}/locations/global`. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class GetIamPolicy extends AiplatformRequest{@link - * GetIamPolicy#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 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. + * @param parent Required. The location to list projects from. Format: `projects/{project}/locations/global`. * @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."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListCollaborativeProjectsResponse.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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) 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 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. + * Required. The location to list projects from. Format: + * `projects/{project}/locations/global`. */ @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 requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The location to list projects from. Format: `projects/{project}/locations/global`. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * 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. + * Required. The location to list projects from. Format: + * `projects/{project}/locations/global`. */ - public GetIamPolicy setResource(java.lang.String resource) { + public List 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; } /** - * 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). + * Optional. The maximum number of projects to return. The maximum is 100; larger values + * are coerced to 100. If not set, the default is 50. */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** 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). + /** Optional. The maximum number of projects to return. The maximum is 100; larger values are coerced + to 100. If not set, the default is 50. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * 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). + * Optional. The maximum number of projects to return. The maximum is 100; larger values + * are coerced to 100. If not set, the default is 50. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token from a previous call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from a previous call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token from a previous call. */ + public List 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Imports data into a Dataset. + * Updates a project's display name or trusted participants. * - * Create a request for the method "datasets.import". + * Create a request for the method "collaborativeProjects.patch". * * 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. + * parameters, call the {@link Patch#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} + * @param name Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @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); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - 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.
+ * 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 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} + * @param name Identifier. The resource name of the project. The service assigns the final ID segment. Format: + * `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject} * @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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CollaborativeProject 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } } @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Identifier. The resource name of the project. The service assigns the final ID segment. + * Format: `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_p + * roject}`. */ @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}` + /** Identifier. The resource name of the project. The service assigns the final ID segment. Format: + `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project}`. */ public java.lang.String getName() { return name; } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Identifier. The resource name of the project. The service assigns the final ID segment. + * Format: `projects/{project}/locations/{location}/collaborativeProjects/{collaborative_p + * roject}`. */ - public AiplatformImport setName(java.lang.String name) { + 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); } this.name = name; return this; } - @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); - } + /** + * Required. The fields to update: `display_name`, `trusted_participants`, or `*` for + * both. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The fields to update: `display_name`, `trusted_participants`, or `*` for both. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The fields to update: `display_name`, `trusted_participants`, or `*` for + * both. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } + /** - * Lists Datasets in a Location. - * - * Create a request for the method "datasets.list". + * An accessor for creating requests from the Artifacts 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.Artifacts.List request = aiplatform.artifacts().list(parameters ...)}
+ *
*
- * @param parent Required. The name of the Dataset's parent resource. 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 Artifacts artifacts() {
+ return new Artifacts();
}
- 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 Add#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 collaborativeProject Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @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/[^/]+$"); - } - } - - @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(); + public Add add(java.lang.String collaborativeProject, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) throws java.io.IOException { + Add result = new Add(collaborativeProject, content); + initialize(result); + return result; } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + public class Add extends AiplatformRequest+ * {@link Add#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param collaborativeProject Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest} + * @since 1.13 + */ + protected Add(java.lang.String collaborativeProject, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddArtifactResponse.class); + this.collaborativeProject = com.google.api.client.util.Preconditions.checkNotNull(collaborativeProject, "Required parameter collaborativeProject must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COLLABORATIVE_PROJECT_PATTERN.matcher(collaborativeProject).matches(), + "Parameter collaborativeProject must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); + } + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Add set$Xgafv(java.lang.String $Xgafv) { + return (Add) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Add setAccessToken(java.lang.String accessToken) { + return (Add) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Add setAlt(java.lang.String alt) { + return (Add) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Add setCallback(java.lang.String callback) { + return (Add) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Add setFields(java.lang.String fields) { + return (Add) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Add setKey(java.lang.String key) { + return (Add) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Add setOauthToken(java.lang.String oauthToken) { + return (Add) super.setOauthToken(oauthToken); + } - /** - * 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 Add setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Add) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Dataset's parent resource. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Add setQuotaUser(java.lang.String quotaUser) { + return (Add) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Add setUploadType(java.lang.String uploadType) { + return (Add) super.setUploadType(uploadType); } - 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; + @Override + public Add setUploadProtocol(java.lang.String uploadProtocol) { + return (Add) super.setUploadProtocol(uploadProtocol); + } - /** 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; - } + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + */ + @com.google.api.client.util.Key + private java.lang.String collaborativeProject; - /** - * 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 List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Optional. The collaborative project to link the file to. Format: + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} Exactly one + of `task` and `collaborative_project` must be set. + */ + public java.lang.String getCollaborativeProject() { + return collaborativeProject; + } - /** - * 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; + /** + * Optional. The collaborative project to link the file to. Format: + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * Exactly one of `task` and `collaborative_project` must be set. + */ + public Add setCollaborativeProject(java.lang.String collaborativeProject) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COLLABORATIVE_PROJECT_PATTERN.matcher(collaborativeProject).matches(), + "Parameter collaborativeProject must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+$"); + } + this.collaborativeProject = collaborativeProject; + return this; + } - /** 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 Add set(String parameterName, Object value) { + return (Add) super.set(parameterName, value); + } } - /** - * 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` + * Lists the files and directories in a task's workspace. By default only the immediate children of + * `path` are returned; set `recursive` to descend into subdirectories. Entries that match `filter` + * are returned in breadth-first order. While the task's sandbox is running, paths it writes locally + * are read from the sandbox so the listing reflects files not yet synced to storage; otherwise they + * are read from storage. Which one served a request is not visible to the caller. + * + * Create a request for the method "artifacts.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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + 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 task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListWorkspaceArtifactsResponse.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @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 List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - 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/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + /** Required. The task or collaborative project whose workspace to list. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + /** + * Required. The task or collaborative project whose workspace to list. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + 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/[^/]+/collaborativeProjects/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND + * mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` + * or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a + * media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so `"image"` + * matches every image type. Directories have an empty `mime_type`. Comparisons use `=` + * or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and parentheses. A filter that + * is not valid AIP-160, or that uses another field or operator, is rejected with + * `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + * directories are walked: with `recursive`, `type = FILE` still returns the files in + * subdirectories. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + /** Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND mime_type = + "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` or `DIRECTORY` (see + `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a media type in double quotes, e.g. + `"text/csv"`. `*` is a wildcard, so `"image"` matches every image type. Directories have an empty + `mime_type`. Comparisons use `=` or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and + parentheses. A filter that is not valid AIP-160, or that uses another field or operator, is + rejected with `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + directories are walked: with `recursive`, `type = FILE` still returns the files in subdirectories. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + /** + * Optional. An AIP-160 filter expression that entries must match, e.g. `type = FILE AND + * mime_type = "image"`. Empty matches every entry. Supported fields: * `type` -- `FILE` + * or `DIRECTORY` (see `TaskArtifactFile.Type`), case-sensitive. * `mime_type` -- a + * media type in double quotes, e.g. `"text/csv"`. `*` is a wildcard, so `"image"` + * matches every image type. Directories have an empty `mime_type`. Comparisons use `=` + * or `!=` and combine with `AND`, `OR`, `NOT` (or `-`) and parentheses. A filter that + * is not valid AIP-160, or that uses another field or operator, is rejected with + * `INVALID_ARGUMENT`. The filter selects which entries are returned, not which + * directories are walked: with `recursive`, `type = FILE` still returns the files in + * subdirectories. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + /** + * Optional. The maximum number of entries to return. The service may return fewer than + * this value, including none on a page that is not the last. If unspecified or 0, at + * most 100 are returned. The maximum is 1000; values above 1000 are coerced to 1000. A + * negative value is rejected with `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The maximum number of entries to return. The service may return fewer than this value, + including none on a page that is not the last. If unspecified or 0, at most 100 are returned. The + maximum is 1000; values above 1000 are coerced to 1000. A negative value is rejected with + `INVALID_ARGUMENT`. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * 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; + /** + * Optional. The maximum number of entries to return. The service may return fewer than + * this value, including none on a page that is not the last. If unspecified or 0, at + * most 100 are returned. The maximum is 1000; values above 1000 are coerced to 1000. A + * negative value is rejected with `INVALID_ARGUMENT`. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + 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; - } + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other fields of the + * request except `page_size` must match the call that provided the page token. The + * workspace is live: the agent can write between pages, so a paged listing is not a + * snapshot. An entry added during the walk may or may not appear, and one removed may + * still be listed and then fail to download. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * 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/[^/]+$"); + /** Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide this to + retrieve the subsequent page. When paginating, all other fields of the request except `page_size` + must match the call that provided the page token. The workspace is live: the agent can write + between pages, so a paged listing is not a snapshot. An entry added during the walk may or may not + appear, and one removed may still be listed and then fail to download. + */ + public java.lang.String getPageToken() { + return pageToken; } - 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; + /** + * Optional. A page token, received from a previous ListWorkspaceArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other fields of the + * request except `page_size` must match the call that provided the page token. The + * workspace is live: the agent can write between pages, so a paged listing is not a + * snapshot. An entry added during the walk may or may not appear, and one removed may + * still be listed and then fail to download. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + 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; - } + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be + * `/workspace` or under it, at most 1024 characters, and not contain a `..` segment. + * Defaults to `/workspace`. + */ + @com.google.api.client.util.Key + private java.lang.String path; - /** - * 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; - } + /** Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be `/workspace` + or under it, at most 1024 characters, and not contain a `..` segment. Defaults to `/workspace`. + */ + public java.lang.String getPath() { + return path; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Searches DataItems in a Dataset. - * - * Create a request for the method "datasets.searchDataItems". - * - * 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 SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { - SearchDataItems result = new SearchDataItems(dataset); - initialize(result); - return result; - } + /** + * Optional. Absolute path of the directory to list, e.g. `/workspace/userdata`. Must be + * `/workspace` or under it, at most 1024 characters, and not contain a `..` segment. + * Defaults to `/workspace`. + */ + public List setPath(java.lang.String path) { + this.path = path; + return this; + } - 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.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Preview#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}` - * @since 1.13 + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @return the request */ - 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 Preview preview(java.lang.String parent) throws java.io.IOException { + Preview result = new Preview(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Preview extends AiplatformRequest{@link + * Preview#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @since 1.13 + */ + protected Preview(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - @Override - public SearchDataItems setAlt(java.lang.String alt) { - return (SearchDataItems) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SearchDataItems setCallback(java.lang.String callback) { - return (SearchDataItems) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SearchDataItems setFields(java.lang.String fields) { - return (SearchDataItems) super.setFields(fields); - } + @Override + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); + } - @Override - public SearchDataItems setKey(java.lang.String key) { - return (SearchDataItems) super.setKey(key); - } + @Override + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); + } - @Override - public SearchDataItems setOauthToken(java.lang.String oauthToken) { - return (SearchDataItems) super.setOauthToken(oauthToken); - } + @Override + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); + } - @Override - public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchDataItems) super.setPrettyPrint(prettyPrint); - } + @Override + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); + } - @Override - public SearchDataItems setQuotaUser(java.lang.String quotaUser) { - return (SearchDataItems) super.setQuotaUser(quotaUser); - } + @Override + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); + } - @Override - public SearchDataItems setUploadType(java.lang.String uploadType) { - return (SearchDataItems) super.setUploadType(uploadType); - } + @Override + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); + } - @Override - public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchDataItems) super.setUploadProtocol(uploadProtocol); - } + @Override + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); + } - /** - * 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 Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); + } - /** 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 Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); } - 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 + * Remove#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest} + * @since 1.13 + */ + protected Remove(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveWorkspaceArtifactResponse.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/[^/]+/collaborativeProjects/[^/]+$"); + } + } - /** Mask specifying which fields of DataItemView to read. */ - public SearchDataItems setFieldMask(String fieldMask) { - this.fieldMask = fieldMask; - return this; - } + @Override + public Remove set$Xgafv(java.lang.String $Xgafv) { + return (Remove) 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. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Remove setAccessToken(java.lang.String accessToken) { + return (Remove) 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 java.lang.String getOrderBy() { - return orderBy; - } + @Override + public Remove setAlt(java.lang.String alt) { + return (Remove) super.setAlt(alt); + } - /** - * 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 Remove setCallback(java.lang.String callback) { + return (Remove) super.setCallback(callback); + } - /** - * 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; + @Override + public Remove setFields(java.lang.String fields) { + return (Remove) super.setFields(fields); + } - /** 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 Remove setKey(java.lang.String key) { + return (Remove) super.setKey(key); + } - /** - * 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 Remove setOauthToken(java.lang.String oauthToken) { + return (Remove) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Remove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Remove) super.setPrettyPrint(prettyPrint); + } - /** 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 Remove setQuotaUser(java.lang.String quotaUser) { + return (Remove) super.setQuotaUser(quotaUser); + } - /** - * 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 Remove setUploadType(java.lang.String uploadType) { + return (Remove) super.setUploadType(uploadType); + } - /** - * 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; - } - - /** - * 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; - } - - /** - * 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; - } - - /** - * 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; - } - - /** - * 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 Remove setUploadProtocol(java.lang.String uploadProtocol) { + return (Remove) super.setUploadProtocol(uploadProtocol); + } - /** - * 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; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + @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. - */ - @com.google.api.client.util.Key - private java.lang.String savedQuery; + /** Required. The task or collaborative project whose workspace holds the file. Format: + projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public java.lang.String getParent() { + return 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 java.lang.String getSavedQuery() { - return savedQuery; - } + /** + * Required. The task or collaborative project whose workspace holds the file. Format: + * projects/{project}/locations/{location}/agents/{agent}/tasks/{task} or + * projects/{project}/locations/{location}/collaborativeProjects/{collaborative_project} + */ + public Remove 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/[^/]+/collaborativeProjects/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * 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; + @Override + public Remove set(String parameterName, Object value) { + return (Remove) super.set(parameterName, value); + } } - @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". + * 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 SetIamPolicy#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 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
+ * @return the resource collection
*/
- 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 Operations operations() {
+ return new Operations();
}
- 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 Cancel#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 to be cancelled. + * @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/[^/]+/datasets/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) 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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) 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. - */ - @com.google.api.client.util.Key - private java.lang.String resource; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** 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 Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.resource = resource; - return this; - } - @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; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - 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.
+ * 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 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 + * @param name The name of the operation resource to be deleted. + * @return the request */ - 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/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + 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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } + } - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** - * 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; + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** 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; - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+$"); + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } - 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.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();
- }
+ /** The name of the operation resource to be deleted.
+ */
+ public java.lang.String getName() {
+ return name;
+ }
- /**
- * The "annotationSpecs" collection of methods.
- */
- public class AnnotationSpecs {
+ /** 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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$");
+ }
+ this.name = name;
+ return this;
+ }
+ @Override
+ public Delete set(String parameterName, Object value) {
+ return (Delete) super.set(parameterName, value);
+ }
+ }
/**
- * Gets an AnnotationSpec.
+ * 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 "annotationSpecs.get".
+ * 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 Required. The name of the AnnotationSpec resource. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp
- * ec}`
+ * @param name The name of the operation resource.
* @return the request
*/
public Get get(java.lang.String name) throws java.io.IOException {
@@ -60516,35 +62038,34 @@ public Get get(java.lang.String name) throws java.io.IOException {
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 AnnotationSpec resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_sp - * ec}` + * @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.GoogleCloudAiplatformV1beta1AnnotationSpec.class); + 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); } } @@ -60613,947 +62134,10613 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the AnnotationSpec resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ + /** 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); } 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); } } - /** - * An accessor for creating requests from the Operations collection. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "operations.wait".
*
- * @return the resource 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.
+ *
+ * @param name The name of the operation resource to wait on.
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Wait wait(java.lang.String name) throws java.io.IOException {
+ Wait result = new Wait(name);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class 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.
* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @param name The name of the operation resource to wait on. + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + 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/[^/]+/collaborativeProjects/[^/]+/operations/[^/]+$"); + } } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.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 Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) 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 be cancelled. */ - @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 be cancelled. - */ - 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/[^/]+/collaborativeProjects/[^/]+/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/[^/]+/annotationSpecs/[^/]+/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; - @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. + */ + public String getTimeout() { + return timeout; } + /** - * 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 + * 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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } - 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + } + } + /** + * 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();
+ }
- @Override
- public Delete setAlt(java.lang.String alt) {
- return (Delete) super.setAlt(alt);
- }
+ /**
+ * The "customJobs" collection of methods.
+ */
+ public class CustomJobs {
- @Override
- public Delete setCallback(java.lang.String callback) {
+ /**
+ * 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); + } + + @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 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; + + /** Required. The resource name of the Location to create the CustomJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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 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; + } + + 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 CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_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/[^/]+/customJobs/[^/]+$"); + } + } + + @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 CustomJob resource to be deleted. 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 resource to be deleted. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * 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 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; + } + + 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/[^/]+$"); + } + } + + @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 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 CustomJob resource. Format: + `projects/{project}/locations/{location}/customJobs/{custom_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_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/[^/]+/customJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists CustomJobs in a Location. + * + * 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 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}` + * @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 Location to list the CustomJobs 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.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(), + "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 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 resource name of the Location to list the CustomJobs from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to list the CustomJobs 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(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * 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:*` + */ + 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 + * 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. 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. 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. */ + @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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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 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/[^/]+/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); + } + } + + } + } + /** + * 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 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 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 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/[^/]+/dataLabelingJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a DataLabelingJob. + * + * 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 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.GoogleCloudAiplatformV1beta1DataLabelingJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @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); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent 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 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) { + 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 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:*` + */ + 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 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; + + /** 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. 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 + 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. + */ + 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. + */ + 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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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 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/[^/]+/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); + } + } + /** + * 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/[^/]+/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 {
+
+ /**
+ * Assembles each row of a multimodal dataset and writes the result into a BigQuery table.
+ *
+ * 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". + * + * 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. + * + * @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} + * @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); + initialize(result); + return result; + } + + public class Assess extends AiplatformRequest{@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 + */ + 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/[^/]+$"); + } + } + + @Override + public Assess set$Xgafv(java.lang.String $Xgafv) { + return (Assess) super.set$Xgafv($Xgafv); + } + + @Override + public Assess setAccessToken(java.lang.String accessToken) { + return (Assess) super.setAccessToken(accessToken); + } + + @Override + public Assess setAlt(java.lang.String alt) { + return (Assess) super.setAlt(alt); + } + + @Override + public Assess setCallback(java.lang.String callback) { + return (Assess) super.setCallback(callback); + } + + @Override + public Assess setFields(java.lang.String fields) { + return (Assess) super.setFields(fields); + } + + @Override + public Assess setKey(java.lang.String key) { + return (Assess) super.setKey(key); + } + + @Override + public Assess setOauthToken(java.lang.String oauthToken) { + return (Assess) super.setOauthToken(oauthToken); + } + + @Override + public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assess) super.setPrettyPrint(prettyPrint); + } + + @Override + public Assess setQuotaUser(java.lang.String quotaUser) { + return (Assess) super.setQuotaUser(quotaUser); + } + + @Override + public Assess setUploadType(java.lang.String uploadType) { + return (Assess) super.setUploadType(uploadType); + } + + @Override + public Assess setUploadProtocol(java.lang.String uploadProtocol) { + return (Assess) 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 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 Assess set(String parameterName, Object value) { + return (Assess) super.set(parameterName, value); + } + } + /** + * Creates a Dataset. + * + * 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 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} + * @return the request + */ + 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 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 Dataset in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Dataset} + * @since 1.13 + */ + 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The 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 parent; + + /** Required. The resource name of the Location to create the Dataset in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the Dataset 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 Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Dataset. + * + * 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 Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the Dataset to delete. 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); + 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 to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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/[^/]+$"); + } + } + + @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 to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Dataset to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + 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/[^/]+$"); + } + 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.lang.String name; + + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public Export 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 Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } + } + /** + * Gets a Dataset. + * + * Create a request for the method "datasets.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 Dataset 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 Required. The name of the Dataset resource. + * @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."); + 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 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 Dataset resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Dataset resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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; + } + + /** 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); + } + } + /** + * 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 + */ + 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); + } + + @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. + */ + @com.google.api.client.util.Key + private java.lang.String 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. + */ + public java.lang.String getResource() { + return 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. + */ + 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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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); + } + } + /** + * 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; + } + + 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/[^/]+$"); + } + } + + @Override + public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { + return (AiplatformImport) super.set$Xgafv($Xgafv); + } + + @Override + public AiplatformImport setAccessToken(java.lang.String accessToken) { + return (AiplatformImport) super.setAccessToken(accessToken); + } + + @Override + public AiplatformImport setAlt(java.lang.String alt) { + return (AiplatformImport) super.setAlt(alt); + } + + @Override + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); + } + + @Override + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); + } + + @Override + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); + } + + @Override + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); + } + + @Override + public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); + } + + @Override + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); + } + + @Override + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); + } + + @Override + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) 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 name; + + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * 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; + } + + @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; + } + + 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 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.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 name of the Dataset's parent resource. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the Dataset's parent resource. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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 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. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + @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. Supported fields: * `display_name` * `create_time` * `update_time` + */ + 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. Supported fields: * `display_name` * `create_time` * + * `update_time` + */ + 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); + } + } + /** + * 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; + } + + 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/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @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); + } + + /** + * 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; + + /** Output only. Identifier. The resource name of the Dataset. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * 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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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); + } + } + /** + * Searches DataItems in a Dataset. + * + * Create a request for the method "datasets.searchDataItems". + * + * 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 SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { + SearchDataItems result = new SearchDataItems(dataset); + 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.
+ * + * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), + "Parameter dataset 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 SearchDataItems set$Xgafv(java.lang.String $Xgafv) { + return (SearchDataItems) super.set$Xgafv($Xgafv); + } + + @Override + public SearchDataItems setAccessToken(java.lang.String accessToken) { + return (SearchDataItems) super.setAccessToken(accessToken); + } + + @Override + public SearchDataItems setAlt(java.lang.String alt) { + return (SearchDataItems) super.setAlt(alt); + } + + @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); + } + + @Override + public SearchDataItems setOauthToken(java.lang.String oauthToken) { + return (SearchDataItems) super.setOauthToken(oauthToken); + } + + @Override + public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchDataItems) super.setPrettyPrint(prettyPrint); + } + + @Override + public SearchDataItems setQuotaUser(java.lang.String quotaUser) { + return (SearchDataItems) super.setQuotaUser(quotaUser); + } + + @Override + public SearchDataItems setUploadType(java.lang.String uploadType) { + return (SearchDataItems) super.setUploadType(uploadType); + } + + @Override + public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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; + + /** 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; + } + + /** + * 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; + } + + /** + * 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 + * 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/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) 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. + */ + @com.google.api.client.util.Key + private java.lang.String 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. + */ + public java.lang.String getResource() { + return 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. + */ + 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; + } + + @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; + } + + 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/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @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.String 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. + */ + public java.lang.String getResource() { + return 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. + */ + 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 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();
+ }
+
+ /**
+ * The "annotationSpecs" collection of methods.
+ */
+ public class AnnotationSpecs {
+
+ /**
+ * 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;
+ }
+
+ 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 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 AnnotationSpec resource. Format: `projects/{project}/locati + * ons/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the AnnotationSpec resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + public java.lang.String getName() { + return name; + } + + /** + * 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. */ + @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); + } + } + + /** + * 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/[^/]+/annotationSpecs/[^/]+/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/[^/]+/annotationSpecs/[^/]+/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/[^/]+/annotationSpecs/[^/]+/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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+$"); + } + } + + @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/[^/]+/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; + } + + /** 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/[^/]+/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 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/[^/]+/annotationSpecs/[^/]+/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 DataItems collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public DataItems dataItems() {
+ return new DataItems();
+ }
+
+ /**
+ * The "dataItems" collection of methods.
+ */
+ public class DataItems {
+
+ /**
+ * Lists DataItems in a Dataset.
+ *
+ * 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 DataItems 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 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 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 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 DataItems from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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) { + 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 Annotations collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Annotations annotations() {
+ return new Annotations();
+ }
+
+ /**
+ * The "annotations" collection of methods.
+ */
+ public class Annotations {
+
+ /**
+ * 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;
+ }
+
+ 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 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 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; + + /** 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; + } + + /** + * 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; + } + + /** 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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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{@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 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/[^/]+/dataItems/[^/]+/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/[^/]+/dataItems/[^/]+/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); + 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+$"); + } + } + + @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/[^/]+$"); + } + 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/[^/]+/operations/[^/]+$"); + } } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + 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/[^/]+/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 DatasetVersions collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public DatasetVersions datasetVersions() {
+ return new DatasetVersions();
+ }
+
+ /**
+ * The "datasetVersions" collection of methods.
+ */
+ public class DatasetVersions {
+
+ /**
+ * Create a version from 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". + * + * 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: + * `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 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 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 DatasetVersions 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: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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; + } + + /** Optional. The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. 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. + */ + @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. + */ + 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. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Optional. 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); + } + } + /** + * Updates a DatasetVersion. + * + * 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 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 + */ + 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 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 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 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/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @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); + } + + /** + * 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; + + /** 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; + } + + /** + * 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/[^/]+$"); } + 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 Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) 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; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + 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 The name of the operation resource. - * @return the request + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi + * on}` + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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/[^/]+$"); - } - } + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The name of the DatasetVersion resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * 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 Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + } + /** + * 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 name of the operation resource.
- */
- public java.lang.String getName() {
- return name;
- }
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
- /** The name of the operation resource. */
- public Get setName(java.lang.String name) {
- if (!getSuppressPatternChecks()) {
- com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
- "Parameter name must conform to the pattern " +
- "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$");
- }
- this.name = name;
- return this;
- }
+ /**
+ * 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's parent resource. - * @return the request + * @param name The name of the operation resource to be cancelled. + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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/[^/]+$"); - } - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** 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 List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @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; + } - @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 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/[^/]+$"); } + } - /** 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; - } + /** The name of the operation resource to be deleted. */ + @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 + /** The name of the operation resource to be deleted. */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + 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/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + /** + * 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 Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) 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 Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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. */ + @com.google.api.client.util.Key + private java.lang.String 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. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** 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/[^/]+$"); } + 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 DataItems collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DataItems dataItems() {
- return new DataItems();
- }
-
- /**
- * The "dataItems" collection of methods.
- */
- public class DataItems {
-
/**
- * Lists DataItems in a Dataset.
+ * 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 "dataItems.list".
+ * 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 parent Required. The resource name of the Dataset to list DataItems from. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}`
+ * @param name The name of the operation's parent resource.
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ 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 parent Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation's parent resource. * @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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent 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/[^/]+$"); } } @@ -61623,31 +72810,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Dataset to list DataItems from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** The name of the operation's parent resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * 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) { + /** The name of the operation's parent resource. */ + public List 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 " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @@ -61667,29 +72847,6 @@ 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; @@ -61722,19 +72879,38 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** Mask specifying which fields to read. */ + /** + * 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 String readMask; + private java.lang.Boolean returnPartialSuccess; - /** Mask specifying which fields to read. + /** 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 String getReadMask() { - return readMask; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = 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; return this; } @@ -61743,1088 +72919,567 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Annotations collection. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
- *
+ * Create a request for the method "operations.wait".
*
- * @return the resource 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.
+ *
+ * @param name The name of the operation resource to wait on.
+ * @return the request
*/
- public Annotations annotations() {
- return new Annotations();
+ public Wait wait(java.lang.String name) throws java.io.IOException {
+ Wait result = new Wait(name);
+ initialize(result);
+ return result;
}
- /**
- * The "annotations" collection of methods.
- */
- public class Annotations {
+ 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 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 + * @param name The name of the operation resource to wait on. + * @since 1.13 */ - 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 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 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 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; - - /** 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; - } - - /** - * 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; - } - - /** 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; + 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/[^/]+$"); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) 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. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) 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 java.lang.String getOrderBy() { - return orderBy; - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** - * 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 Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** 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; } /** - * 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
+ * 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 Operations operations() {
- return new Operations();
+ @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 "operations" collection of methods.
+ * 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 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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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); - } + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + } + /** + * 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();
+ }
- @Override
- public Get setUploadType(java.lang.String uploadType) {
- return (Get) super.setUploadType(uploadType);
- }
+ /**
+ * The "savedQueries" collection of methods.
+ */
+ public class SavedQueries {
- @Override
- public Get setUploadProtocol(java.lang.String uploadProtocol) {
- return (Get) super.setUploadProtocol(uploadProtocol);
- }
+ /**
+ * Deletes a SavedQuery.
+ *
+ * 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 Delete#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}`
+ * @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 Required. The resource name of the SavedQuery to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + * @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/[^/]+/savedQueries/[^/]+$"); } + } - 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/[^/]+/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 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); + } - /** The name of the operation's parent resource. */ - @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}` + */ + @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; - } + /** 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'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; - } + /** + * 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; + } - /** The standard list filter. */ - @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); + } + } + /** + * 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; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + 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/[^/]+$"); + } + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * 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 List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** 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 List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * 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 setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @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 setKey(java.lang.String key) { + return (List) super.setKey(key); + } - 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 List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + /** + * 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; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + /** 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; + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * 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; + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + /** + * 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 Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + /** 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 Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + /** + * 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 Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + 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 standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * 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 standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** 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 standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + 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; - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** 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. * @@ -62873,7 +73528,7 @@ public class Cancel 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/[^/]+/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/[^/]+/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 DatasetVersions collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DatasetVersions datasetVersions() {
- return new DatasetVersions();
- }
-
- /**
- * The "datasetVersions" collection of methods.
- */
- public class DatasetVersions {
-
- /**
- * Create a version from 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.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the Dataset version to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @since 1.13 + * @param name The name of the operation resource to wait on. + * @return the request */ - 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); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + 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 Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - /** - * 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; + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** 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; - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** - * 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/[^/]+$"); + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } - this.name = name; - return this; - } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @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". - * - * 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: - * `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; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - 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/[^/]+$"); + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; } - } - - @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(); - } + /** 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; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * 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 List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * 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 List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + } + } + } + /** + * 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();
+ }
- @Override
- public List setKey(java.lang.String key) {
- return (List) super.setKey(key);
- }
+ /**
+ * The "deploymentResourcePools" collection of methods.
+ */
+ public class DeploymentResourcePools {
- @Override
- public List setOauthToken(java.lang.String oauthToken) {
- return (List) super.setOauthToken(oauthToken);
- }
+ /**
+ * Create a DeploymentResourcePool.
+ *
+ * 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 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}
+ * @return the request
+ */
+ 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;
+ }
- @Override
- public List setPrettyPrint(java.lang.Boolean prettyPrint) {
- return (List) super.setPrettyPrint(prettyPrint);
- }
+ public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent 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 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/[^/]+$"); } + } - /** - * 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; + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - /** 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; - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - /** - * 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; - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** Optional. The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - /** Optional. The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - /** Optional. The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - /** - * Optional. 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 Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** Optional. 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 Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** - * 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 Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Optional. The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** Optional. The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * 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; - /** Optional. The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** Optional. The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; + /** + * 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/[^/]+$"); } + this.parent = parent; + return this; + } - /** Optional. The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - 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; + } - /** Optional. Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + 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 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 + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - 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; + 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 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 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 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/[^/]+$"); - } - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; - /** - * 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; + /** Required. The name of the DeploymentResourcePool to delete. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getName() { + return name; + } - /** 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; + /** + * 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/[^/]+$"); } + this.name = name; + return this; + } - /** - * 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/[^/]+$"); - } - 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; + } - /** - * 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; + 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 DatasetVersion resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_versi - * on}` - * @return the request + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - public Restore restore(java.lang.String name) throws java.io.IOException { - Restore result = new Restore(name); - initialize(result); - return result; - } - - 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/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + 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/[^/]+$"); } + } - @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 Restore set$Xgafv(java.lang.String $Xgafv) { - return (Restore) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Restore setAccessToken(java.lang.String accessToken) { - return (Restore) super.setAccessToken(accessToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Restore setAlt(java.lang.String alt) { - return (Restore) super.setAlt(alt); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Restore setCallback(java.lang.String callback) { - return (Restore) super.setCallback(callback); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Restore setFields(java.lang.String fields) { - return (Restore) super.setFields(fields); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Restore setKey(java.lang.String key) { - return (Restore) super.setKey(key); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Restore setOauthToken(java.lang.String oauthToken) { - return (Restore) super.setOauthToken(oauthToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Restore) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Restore setQuotaUser(java.lang.String quotaUser) { - return (Restore) super.setQuotaUser(quotaUser); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Restore setUploadType(java.lang.String uploadType) { - return (Restore) super.setUploadType(uploadType); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Restore setUploadProtocol(java.lang.String uploadProtocol) { - return (Restore) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * 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; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** 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 DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + @com.google.api.client.util.Key + private java.lang.String 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; - } + /** 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 Restore set(String parameterName, Object value) { - return (Restore) super.set(parameterName, value); + /** + * 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/[^/]+$"); } + 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. + * List DeploymentResourcePools in a location. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "deploymentResourcePools.list".
*
- * @return the resource 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.
+ *
+ * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format:
+ * `projects/{project}/locations/{location}`
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class 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.
* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(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.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/[^/]+$"); + } } - 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; + /** + * 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/[^/]+$"); } + this.parent = parent; + 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/[^/]+$"); - } - this.name = name; - 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 Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this + value. + */ + public java.lang.Integer getPageSize() { + return pageSize; } + /** - * 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 + * The maximum number of DeploymentResourcePools to return. The service may return fewer + * than this value. */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - 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); - } - - @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); - } + /** + * 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; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** 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; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * 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 Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @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; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + 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. - * @return the request + * @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 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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/[^/]+/operations/[^/]+$"); - } - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * 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; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Immutable. The resource name of the DeploymentResourcePool. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * 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/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @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; + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + 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 name The name of the operation's parent resource. - * @return the request + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` + * @since 1.13 */ - 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/[^/]+$"); - } - } - - @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); + 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/[^/]+$"); } + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { + return (QueryDeployedModels) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public QueryDeployedModels setAccessToken(java.lang.String accessToken) { + return (QueryDeployedModels) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public QueryDeployedModels setAlt(java.lang.String alt) { + return (QueryDeployedModels) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public QueryDeployedModels setCallback(java.lang.String callback) { + return (QueryDeployedModels) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public QueryDeployedModels setFields(java.lang.String fields) { + return (QueryDeployedModels) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public QueryDeployedModels setKey(java.lang.String key) { + return (QueryDeployedModels) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { + return (QueryDeployedModels) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { + return (QueryDeployedModels) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public QueryDeployedModels setUploadType(java.lang.String uploadType) { + return (QueryDeployedModels) super.setUploadType(uploadType); + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * 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; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** 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; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + /** + * 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/[^/]+$"); } + this.deploymentResourcePool = deploymentResourcePool; + return this; + } - /** The standard list page size. */ - @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. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The maximum number of DeployedModels to return. The service may return fewer than this value. + */ + 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 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; + } - /** The standard list 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. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list 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 java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - 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. + */ + public QueryDeployedModels 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; + @Override + public QueryDeployedModels set(String parameterName, Object value) { + return (QueryDeployedModels) super.set(parameterName, value); + } + } - /** 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; - } + /** + * 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();
+ }
- /**
- * When set to `true`, operations that are reachable are returned as normal, and those
- * that are unreachable are returned in the ListOperationsResponse.unreachable field.
- * This can only be `true` when reading across collections. For example, when `parent`
- * is set to `"projects/example/locations/-"`. This field is not supported by default
- * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented
- * otherwise in service or product specific documentation.
- */
- public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) {
- this.returnPartialSuccess = returnPartialSuccess;
- return this;
- }
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
- @Override
- public List set(String parameterName, Object value) {
- return (List) super.set(parameterName, value);
- }
- }
/**
- * Waits until the specified long-running operation is done or reaches at most a specified timeout,
- * returning the latest state. If the operation is already done, the latest state is immediately
- * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
- * timeout is used. If the server does not support this method, it returns
- * `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- * {@link Wait#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 name The name of the operation resource to wait on. + * @param name The name of the operation resource to be cancelled. * @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); + 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to wait on. */ + /** 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 wait on. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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); + public Cancel set(String parameterName, Object value) { + return (Cancel) 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.
+ * 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 "savedQueries.delete".
+ * 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 Required. The resource name of the SavedQuery to delete. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+ * @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 {
@@ -65530,17 +75489,19 @@ public Delete delete(java.lang.String name) throws java.io.IOException {
return result;
}
- public class Delete extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 parent Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param name The name of the operation resource. * @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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } } @@ -65710,1058 +75663,530 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Dataset to list SavedQueries from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Dataset to list SavedQueries from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return 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) { + /** The name of the operation resource. */ + public Get 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/[^/]+/datasets/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } - 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; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "operations.list".
*
- * @return the resource 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.
+ *
+ * @param name The name of the operation's parent resource.
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public List list(java.lang.String name) throws java.io.IOException {
+ List result = new List(name);
+ initialize(result);
+ return result;
}
- /**
- * 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 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/[^/]+/savedQueries/[^/]+/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/[^/]+/savedQueries/[^/]+/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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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; + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation's parent resource. - * @return the request + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+$"); + } } - 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** 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/[^/]+/deploymentResourcePools/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** 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/[^/]+/savedQueries/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - /** 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. + */ + 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. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + public class Wait extends AiplatformRequest+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param name The name of the operation resource to wait on. - * @return the request + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+$"); - } + 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/[^/]+$"); } + } - @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/[^/]+/savedQueries/[^/]+/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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } + } } /** - * An accessor for creating requests from the DeploymentResourcePools collection. + * An accessor for creating requests from the Detectors collection. * *The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.DeploymentResourcePools.List request = aiplatform.deploymentResourcePools().list(parameters ...)}
+ * {@code Aiplatform.Detectors.List request = aiplatform.detectors().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DeploymentResourcePools deploymentResourcePools() {
- return new DeploymentResourcePools();
+ public Detectors detectors() {
+ return new Detectors();
}
/**
- * The "deploymentResourcePools" collection of methods.
+ * The "detectors" collection of methods.
*/
- public class DeploymentResourcePools {
+ public class Detectors {
/**
- * Create a DeploymentResourcePool.
+ * Creates a new customer-defined Detector. The detector is always created DISABLED; EnableDetector
+ * starts it scanning.
*
- * Create a request for the method "deploymentResourcePools.create".
+ * Create a request for the method "detectors.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 location resource where this DeploymentResourcePool will be created. Format:
+ * @param parent Required. The resource name of the Location to create the Detector in. Format:
* `projects/{project}/locations/{location}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest}
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Create extends AiplatformRequest{@link + * Disable#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 detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableDetectorRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); + } + } + + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } + + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } + + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } + + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } + + @Override + public Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } + + @Override + public Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } + + @Override + public Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } + + @Override + public Disable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Disable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Disable setQuotaUser(java.lang.String quotaUser) { + return (Disable) super.setQuotaUser(quotaUser); + } + + @Override + public Disable setUploadType(java.lang.String uploadType) { + return (Disable) super.setUploadType(uploadType); + } + + @Override + public Disable setUploadProtocol(java.lang.String uploadProtocol) { + return (Disable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the detector to disable. Format: + `projects/{project}/locations/{location}/detectors/{detector}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the detector to disable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + public Disable 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/[^/]+/detectors/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a specific detector, so that it starts scanning. Enabling an already-ACTIVE detector + * succeeds and changes nothing. + * + * Create a request for the method "detectors.enable". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Enable#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } + + public class Enable extends AiplatformRequest{@link + * Enable#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 detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableDetectorRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); + } + } + + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } + + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } + + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } + + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } + + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } + + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } + + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } + + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } + + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } + + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } + + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the detector to enable. Format: + `projects/{project}/locations/{location}/detectors/{detector}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the detector to enable. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + public Enable 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/[^/]+/detectors/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets the details of a specific detector, including its current configuration. + * + * Create a request for the method "detectors.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 - * }` + * @param name Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -67031,35 +76766,34 @@ public Get get(java.lang.String name) throws java.io.IOException { 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 DeploymentResourcePool to retrieve. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` + * @param name Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeploymentResourcePool.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } } @@ -67129,47 +76863,69 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the DeploymentResourcePool to retrieve. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Required. The resource name of the detector. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec - * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Return the detector as configured at this revision. Unset returns the latest + * revision. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** Optional. Return the detector as configured at this revision. Unset returns the latest revision. + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Optional. Return the detector as configured at this revision. Unset returns the latest + * revision. + */ + public Get setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * List DeploymentResourcePools in a location. + * Lists the detectors in a Location. * - * Create a request for the method "deploymentResourcePools.list". + * Create a request for the method "detectors.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: + * @param parent Required. The resource name of the Location to list the detectors from. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -67179,29 +76935,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 Location which owns this collection of DeploymentResourcePools. Format: + * @param parent Required. The resource name of the Location to list the detectors 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.GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDetectorsResponse.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(), @@ -67276,13 +77032,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the detectors from. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + /** Required. The resource name of the Location to list the detectors from. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -67290,280 +77046,127 @@ public java.lang.String getParent() { } /** - * Required. The parent Location which owns this collection of DeploymentResourcePools. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the detectors 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(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - 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 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; - } - - 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/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @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); + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Optional. The maximum number of detectors to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 detectors will be + * returned. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer pageSize; - /** Immutable. The resource name of the DeploymentResourcePool. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Optional. The maximum number of detectors to return. The maximum value is 100; values above 100 + will be coerced to 100. If unspecified, at most 10 detectors will be returned. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} - * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Optional. The maximum number of detectors to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 detectors will be + * returned. */ - 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/[^/]+$"); - } - this.name = name; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** Required. The list of fields to update. */ + /** + * Optional. A page token, received from a previous `ListDetectors` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDetectors` must match the call that provided the page token. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String pageToken; - /** Required. The list of fields to update. + /** Optional. A page token, received from a previous `ListDetectors` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListDetectors` must match the + call that provided the page token. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getPageToken() { + return pageToken; } - /** Required. The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Optional. A page token, received from a previous `ListDetectors` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDetectors` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * List DeployedModels that have been deployed on this DeploymentResourcePool. + * Lists the revisions of a detector, newest first. Each entry is the detector as configured at one + * revision, with `revision_id` and `revision_create_time` set. `state` and `selected_revision_id` + * are unset: neither is a property of a revision, and GetDetector returns both. * - * Create a request for the method "deploymentResourcePools.queryDeployedModels". + * Create a request for the method "detectors.listRevisions". * * 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. + * parameters, call the {@link ListRevisions#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 - * }` + * @param name Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @return the request */ - public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { - QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); + public ListRevisions listRevisions(java.lang.String name) throws java.io.IOException { + ListRevisions result = new ListRevisions(name); 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.
+ * optional parameters, call the {@link ListRevisions#execute()} method to invoke the remote + * operation.{@link ListRevisions#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} 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 - * }` + * @param name Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` * @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."); + protected ListRevisions(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListDetectorRevisionsResponse.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(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), - "Parameter deploymentResourcePool must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } } @@ -67578,967 +77181,313 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { - return (QueryDeployedModels) super.set$Xgafv($Xgafv); + public ListRevisions set$Xgafv(java.lang.String $Xgafv) { + return (ListRevisions) super.set$Xgafv($Xgafv); } @Override - public QueryDeployedModels setAccessToken(java.lang.String accessToken) { - return (QueryDeployedModels) super.setAccessToken(accessToken); + public ListRevisions setAccessToken(java.lang.String accessToken) { + return (ListRevisions) super.setAccessToken(accessToken); } @Override - public QueryDeployedModels setAlt(java.lang.String alt) { - return (QueryDeployedModels) super.setAlt(alt); + public ListRevisions setAlt(java.lang.String alt) { + return (ListRevisions) super.setAlt(alt); } @Override - public QueryDeployedModels setCallback(java.lang.String callback) { - return (QueryDeployedModels) super.setCallback(callback); + public ListRevisions setCallback(java.lang.String callback) { + return (ListRevisions) super.setCallback(callback); } @Override - public QueryDeployedModels setFields(java.lang.String fields) { - return (QueryDeployedModels) super.setFields(fields); + public ListRevisions setFields(java.lang.String fields) { + return (ListRevisions) super.setFields(fields); } @Override - public QueryDeployedModels setKey(java.lang.String key) { - return (QueryDeployedModels) super.setKey(key); + public ListRevisions setKey(java.lang.String key) { + return (ListRevisions) super.setKey(key); } @Override - public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { - return (QueryDeployedModels) super.setOauthToken(oauthToken); + public ListRevisions setOauthToken(java.lang.String oauthToken) { + return (ListRevisions) super.setOauthToken(oauthToken); } @Override - public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); + public ListRevisions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRevisions) super.setPrettyPrint(prettyPrint); } @Override - public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { - return (QueryDeployedModels) super.setQuotaUser(quotaUser); + public ListRevisions setQuotaUser(java.lang.String quotaUser) { + return (ListRevisions) super.setQuotaUser(quotaUser); } @Override - public QueryDeployedModels setUploadType(java.lang.String uploadType) { - return (QueryDeployedModels) super.setUploadType(uploadType); + public ListRevisions setUploadType(java.lang.String uploadType) { + return (ListRevisions) super.setUploadType(uploadType); } @Override - public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); + public ListRevisions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListRevisions) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ @com.google.api.client.util.Key - private java.lang.String deploymentResourcePool; + private java.lang.String name; - /** Required. The name of the target DeploymentResourcePool to query. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /** Required. The detector whose revisions to list. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ - public java.lang.String getDeploymentResourcePool() { - return deploymentResourcePool; + public java.lang.String getName() { + return name; } /** - * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr - * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + * Required. The detector whose revisions to list. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ - public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { + public ListRevisions setName(java.lang.String name) { 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/detectors/[^/]+$"); } - this.deploymentResourcePool = deploymentResourcePool; + this.name = name; return this; } /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. + * Optional. The maximum number of revisions to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 revisions will be + * returned. */ @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. + /** Optional. The maximum number of revisions to return. The maximum value is 100; values above 100 + will be coerced to 100. If unspecified, at most 10 revisions will be returned. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of DeployedModels to return. The service may return fewer than this - * value. + * Optional. The maximum number of revisions to return. The maximum value is 100; values + * above 100 will be coerced to 100. If unspecified, at most 10 revisions will be + * returned. */ - public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { + public ListRevisions 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. + * Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide + * this to retrieve the subsequent page. When paginating, `name` 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. + /** Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide this to + retrieve the subsequent page. When paginating, `name` 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. + * Optional. A page token, received from a previous `ListDetectorRevisions` call. Provide + * this to retrieve the subsequent page. When paginating, `name` must match the call that + * provided the page token. */ - public QueryDeployedModels setPageToken(java.lang.String pageToken) { + public ListRevisions setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override - public QueryDeployedModels set(String parameterName, Object value) { - return (QueryDeployedModels) super.set(parameterName, value); + public ListRevisions set(String parameterName, Object value) { + return (ListRevisions) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Updates an existing detector. A mask covering `custom_detector_config` replaces the whole config; + * `state` cannot be changed here, use EnableDetector or DisableDetector. * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "detectors.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 Identifier. The resource name of the detector. Format:
+ * `projects/{project}/locations/{location}/detectors/{detector}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector}
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) throws java.io.IOException {
+ Patch result = new Patch(name, content);
+ initialize(result);
+ return result;
}
- /**
- * 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/[^/]+/deploymentResourcePools/[^/]+/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; + 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 deleted. - * @return the request + * @param name Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector} + * @since 1.13 */ - 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/[^/]+/deploymentResourcePools/[^/]+/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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Detector.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/[^/]+/detectors/[^/]+$"); } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } + /** - * 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 + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` */ - 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/[^/]+/deploymentResourcePools/[^/]+/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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @com.google.api.client.util.Key + private java.lang.String name; - @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 + /** Identifier. The resource name of the detector. Format: + `projects/{project}/locations/{location}/detectors/{detector}` */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + public java.lang.String getName() { + return name; } - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @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 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/[^/]+/deploymentResourcePools/[^/]+$"); - } - 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; + /** + * Identifier. The resource name of the detector. Format: + * `projects/{project}/locations/{location}/detectors/{detector}` + */ + 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/[^/]+/detectors/[^/]+$"); } + this.name = name; + 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; - } + /** + * Optional. The list of fields to update. Supported paths are `display_name`, + * `description` and `custom_detector_config`. `name` and `state` are ignored if named; + * any other path is rejected with INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Optional. The list of fields to update. Supported paths are `display_name`, `description` and + `custom_detector_config`. `name` and `state` are ignored if named; any other path is rejected with + INVALID_ARGUMENT. + */ + public String getUpdateMask() { + return updateMask; } + /** - * 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 + * Optional. The list of fields to update. Supported paths are `display_name`, + * `description` and `custom_detector_config`. `name` and `state` are ignored if named; + * any other path is rejected with INVALID_ARGUMENT. */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + 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/[^/]+$"); - } - } - - @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/[^/]+/deploymentResourcePools/[^/]+/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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } - } + } /** * An accessor for creating requests from the EdgeDevices collection. @@ -76743,6 +85692,34 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If set to true, all revisions of this EvaluationItem are deleted too. + * Otherwise the request fails with FAILED_PRECONDITION if the EvaluationItem has + * revisions. Even with force, fails with FAILED_PRECONDITION if any revision is + * referenced by an EvaluationSetRevision. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, all revisions of this EvaluationItem are deleted too. Otherwise the + request fails with FAILED_PRECONDITION if the EvaluationItem has revisions. Even with force, fails + with FAILED_PRECONDITION if any revision is referenced by an EvaluationSetRevision. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, all revisions of this EvaluationItem are deleted too. + * Otherwise the request fails with FAILED_PRECONDITION if the EvaluationItem has + * revisions. Even with force, fails with FAILED_PRECONDITION if any revision is + * referenced by an EvaluationSetRevision. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -77398,419 +86375,590 @@ 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.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/[^/]+/evaluationItems/[^/]+$"); + } + } + + @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/[^/]+/evaluationItems/[^/]+$"); + } + 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/[^/]+/evaluationItems/[^/]+/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/[^/]+/evaluationItems/[^/]+/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 Revisions collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Revisions revisions() {
+ return new Revisions();
+ }
+
+ /**
+ * The "revisions" collection of methods.
+ */
+ public class Revisions {
+
+ /**
+ * Gets an Evaluation Item Revision.
+ *
+ * Create a request for the method "revisions.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 EvaluationItemRevision resource. Format:
+ * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revi
+ * sion}`
+ * @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 EvaluationItemRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revi + * sion}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItemRevision.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/[^/]+/evaluationItems/[^/]+/revisions/[^/]+$"); + } + } + + @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); + } + /** - * 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 + * Required. The name of the EvaluationItemRevision resource. Format: `projects/{project + * }/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ - 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/[^/]+/evaluationItems/[^/]+$"); - } - } - - @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. + /** Required. The name of the EvaluationItemRevision resource. Format: + `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ 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/[^/]+/evaluationItems/[^/]+$"); - } - 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/[^/]+/evaluationItems/[^/]+/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. + * Required. The name of the EvaluationItemRevision resource. Format: `projects/{project + * }/locations/{location}/evaluationItems/{evaluation_item}/revisions/{revision}` */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/revisions/[^/]+$"); } 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } @@ -80846,6 +89994,35 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + * EvaluationItemRevisions) are deleted too. Otherwise the request fails with + * FAILED_PRECONDITION if the EvaluationSet has any revisions. Fails with + * FAILED_PRECONDITION even with force if a revision is being created. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + EvaluationItemRevisions) are deleted too. Otherwise the request fails with FAILED_PRECONDITION if + the EvaluationSet has any revisions. Fails with FAILED_PRECONDITION even with force if a revision + is being created. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, all revisions of this EvaluationSet (and their unreferenced + * EvaluationItemRevisions) are deleted too. Otherwise the request fails with + * FAILED_PRECONDITION if the EvaluationSet has any revisions. Fails with + * FAILED_PRECONDITION even with force if a revision is being created. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -82212,6 +91389,659 @@ public Wait set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Revisions collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Revisions revisions() {
+ return new Revisions();
+ }
+
+ /**
+ * The "revisions" collection of methods.
+ */
+ public class Revisions {
+
+ /**
+ * Creates an Evaluation Set Revision: an immutable snapshot of the Evaluation Set and its
+ * Evaluation Items. Each entry in the set's `evaluation_items` is replaced by an Evaluation Item
+ * Revision of that item. Every Evaluation Item in the set must be of type `HARBOR_TASK`. It must
+ * not contain duplicate items. Currently this always creates a new Evaluation Item Revision for
+ * every item. Clients must not rely on this: a future version may reuse an item's latest Evaluation
+ * Item Revision when the item has not changed since that revision was created.
+ *
+ * Create a request for the method "revisions.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 EvaluationSet to create a revision of. Format:
+ * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision 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 EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision 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/[^/]+/evaluationSets/[^/]+$"); + } + } + + @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 resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EvaluationSet to create a revision of. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EvaluationSet to create a revision of. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+/evaluationSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an Evaluation Set Revision, then deletes each of its Evaluation Item Revisions that no + * other Evaluation Set Revision references. Evaluation Runs on the revision and their results are + * not deleted. + * + * Create a request for the method "revisions.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 EvaluationSetRevision resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * 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 name of the EvaluationSetRevision resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * 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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + } + + @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 EvaluationSetRevision resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EvaluationSetRevision resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EvaluationSetRevision resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + */ + 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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an Evaluation Set Revision. + * + * Create a request for the method "revisions.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 EvaluationSetRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * 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 name of the EvaluationSetRevision resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revisi + * on}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSetRevision.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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + } + + @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 EvaluationSetRevision resource. Format: `projects/{project} + * /locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EvaluationSetRevision resource. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EvaluationSetRevision resource. Format: `projects/{project} + * /locations/{location}/evaluationSets/{evaluation_set}/revisions/{revision}` + */ + 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/[^/]+/evaluationSets/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the revisions of an Evaluation Set, newest first. + * + * Create a request for the method "revisions.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 EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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 EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationSetRevisionsResponse.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/[^/]+/evaluationSets/[^/]+$"); + } + } + + @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 EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EvaluationSet whose revisions to list. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EvaluationSet whose revisions to list. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+/evaluationSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The maximum number of EvaluationSetRevisions to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of EvaluationSetRevisions to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of EvaluationSetRevisions to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. + * Provide this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListEvaluationSetRevisions` call. + * Provide this to retrieve the subsequent page. + */ + 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); + } + } + + } } /** * An accessor for creating requests from the ExampleStores collection. @@ -114183,6 +124013,852 @@ public Get set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the LearningSets collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.LearningSets.List request = aiplatform.learningSets().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public LearningSets learningSets() {
+ return new LearningSets();
+ }
+
+ /**
+ * The "learningSets" collection of methods.
+ */
+ public class LearningSets {
+
+ /**
+ * 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/[^/]+/learningSets/[^/]+/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/[^/]+/learningSets/[^/]+/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/[^/]+/learningSets/[^/]+/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/[^/]+/learningSets/[^/]+/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/[^/]+/learningSets/[^/]+/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/[^/]+/learningSets/[^/]+/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