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 99427a70610..15c8aded782 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 Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Generate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Purge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Retrieve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Rollback#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.
+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. The typical use is:
- * {@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.
- * {@link Wait#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. {@link
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Generate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is:
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Purge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Retrieve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Rollback#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: The typical use is: {@link
- * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor.
+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor.
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "memories.delete".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the Memory to delete. Format:
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem
+ * ory}`
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Delete delete(java.lang.String name) throws java.io.IOException {
+ Delete result = new Delete(name);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Delete extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * 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.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 {
+
/**
- * Lists operations that match the specified filter in the request. If the server doesn't support
- * this method, it returns `UNIMPLEMENTED`.
+ * Get a Memory Revision.
*
- * Create a request for the method "operations.list".
+ * 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 List#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation's parent resource.
+ * @param name Required. The resource name of the Memory Revision to retrieve. Format: `projects/{project}/location
+ * s/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{revision}`
* @return the request
*/
- public List list(java.lang.String name) throws java.io.IOException {
- List result = new List(name);
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
initialize(result);
return result;
}
- public class List extends AiplatformRequest
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "memories.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 resource name of the ReasoningEngine to list the Memories under. Format:
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+ * @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
+ * {@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.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".
+ * An accessor for creating requests from the Revisions 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.
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+ *
*
- * @param name The name of the operation resource to be cancelled.
- * @return the request
+ * @return the resource collection
*/
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
- initialize(result);
- return result;
+ public Revisions revisions() {
+ return new Revisions();
}
- public class Cancel extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * 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.HyperparameterTuningJobs.List request = aiplatform.hyperparameterTuningJobs().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public HyperparameterTuningJobs hyperparameterTuningJobs() {
+ return new HyperparameterTuningJobs();
+ }
+
+ /**
+ * The "hyperparameterTuningJobs" collection of methods.
+ */
+ public class HyperparameterTuningJobs {
+
+ /**
+ * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the
+ * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not
+ * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check
+ * whether the cancellation succeeded or whether the job completed despite cancellation. On
+ * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job
+ * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.
+ *
+ * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob to cancel. Format:
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j
+ * ob}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * 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.HyperparameterTuningJobs.List request = aiplatform.hyperparameterTuningJobs().list(parameters ...)}
+ * {@code Aiplatform.IndexEndpoints.List request = aiplatform.indexEndpoints().list(parameters ...)}
*
*
* @return the resource collection
*/
- public HyperparameterTuningJobs hyperparameterTuningJobs() {
- return new HyperparameterTuningJobs();
+ public IndexEndpoints indexEndpoints() {
+ return new IndexEndpoints();
}
/**
- * The "hyperparameterTuningJobs" collection of methods.
+ * The "indexEndpoints" collection of methods.
*/
- public class HyperparameterTuningJobs {
+ public class IndexEndpoints {
/**
- * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the
- * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not
- * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check
- * whether the cancellation succeeded or whether the job completed despite cancellation. On
- * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job
- * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to
- * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.
+ * Creates an IndexEndpoint.
*
- * Create a request for the method "hyperparameterTuningJobs.cancel".
+ * Create a request for the method "indexEndpoints.create".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name Required. The name of the HyperparameterTuningJob to cancel. Format:
- * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j
- * ob}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest}
+ * @param parent Required. The resource name of the Location to create the IndexEndpoint in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint}
* @return the request
*/
- public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest content) throws java.io.IOException {
- Cancel result = new Cancel(name, content);
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException {
+ Create result = new Create(parent, 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 resource name of the Location to create the IndexEndpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint 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 IndexEndpoint 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 IndexEndpoint in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the IndexEndpoint 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 an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.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 IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @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 - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest} + * @param name Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @since 1.13 */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project - * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the HyperparameterTuningJob to cancel. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Required. The name of the IndexEndpoint resource to be deleted. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project - * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public Cancel setName(java.lang.String name) { + 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a HyperparameterTuningJob + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. * - * Create a request for the method "hyperparameterTuningJobs.create". + * Create a request for the method "indexEndpoints.deployIndex". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link DeployIndex#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) throws java.io.IOException { - Create result = new Create(parent, content); + public DeployIndex deployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) throws java.io.IOException { + DeployIndex result = new DeployIndex(indexEndpoint, content); initialize(result); return result; } - public class Create extends AiplatformRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link DeployIndex#execute()} method to invoke the remote + * operation.{@link + * DeployIndex#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 HyperparameterTuningJob in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected DeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public DeployIndex set$Xgafv(java.lang.String $Xgafv) { + return (DeployIndex) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public DeployIndex setAccessToken(java.lang.String accessToken) { + return (DeployIndex) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public DeployIndex setAlt(java.lang.String alt) { + return (DeployIndex) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public DeployIndex setCallback(java.lang.String callback) { + return (DeployIndex) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public DeployIndex setFields(java.lang.String fields) { + return (DeployIndex) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public DeployIndex setKey(java.lang.String key) { + return (DeployIndex) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public DeployIndex setOauthToken(java.lang.String oauthToken) { + return (DeployIndex) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public DeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeployIndex) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public DeployIndex setQuotaUser(java.lang.String quotaUser) { + return (DeployIndex) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public DeployIndex setUploadType(java.lang.String uploadType) { + return (DeployIndex) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public DeployIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (DeployIndex) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to create the HyperparameterTuningJob in. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String indexEndpoint; - /** Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getIndexEndpoint() { + return indexEndpoint; } /** - * Required. The resource name of the Location to create the HyperparameterTuningJob in. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public Create setParent(java.lang.String parent) { + public DeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } - this.parent = parent; + this.indexEndpoint = indexEndpoint; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public DeployIndex set(String parameterName, Object value) { + return (DeployIndex) super.set(parameterName, value); } } /** - * Deletes a HyperparameterTuningJob. + * Finds the nearest neighbors of each vector within the request. * - * Create a request for the method "hyperparameterTuningJobs.delete". + * Create a request for the method "indexEndpoints.findNeighbors". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link FindNeighbors#execute()} method to invoke the remote operation. * - * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public FindNeighbors findNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) throws java.io.IOException { + FindNeighbors result = new FindNeighbors(indexEndpoint, content); initialize(result); return result; } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link FindNeighbors#execute()} method to invoke the remote + * operation.{@link FindNeighbors#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
* - * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected FindNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsResponse.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public FindNeighbors set$Xgafv(java.lang.String $Xgafv) { + return (FindNeighbors) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public FindNeighbors setAccessToken(java.lang.String accessToken) { + return (FindNeighbors) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public FindNeighbors setAlt(java.lang.String alt) { + return (FindNeighbors) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public FindNeighbors setCallback(java.lang.String callback) { + return (FindNeighbors) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public FindNeighbors setFields(java.lang.String fields) { + return (FindNeighbors) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public FindNeighbors setKey(java.lang.String key) { + return (FindNeighbors) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public FindNeighbors setOauthToken(java.lang.String oauthToken) { + return (FindNeighbors) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public FindNeighbors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FindNeighbors) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public FindNeighbors setQuotaUser(java.lang.String quotaUser) { + return (FindNeighbors) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public FindNeighbors setUploadType(java.lang.String uploadType) { + return (FindNeighbors) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public FindNeighbors setUploadProtocol(java.lang.String uploadProtocol) { + return (FindNeighbors) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj - * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job - * }` + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String indexEndpoint; - /** Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Required. The name of the index endpoint. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getIndexEndpoint() { + return indexEndpoint; } /** - * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj - * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job - * }` + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public Delete setName(java.lang.String name) { + public FindNeighbors setIndexEndpoint(java.lang.String indexEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } - this.name = name; + this.indexEndpoint = indexEndpoint; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public FindNeighbors set(String parameterName, Object value) { + return (FindNeighbors) super.set(parameterName, value); } } /** - * Gets a HyperparameterTuningJob + * Gets an IndexEndpoint. * - * Create a request for the method "hyperparameterTuningJobs.get". + * Create a request for the method "indexEndpoints.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 HyperparameterTuningJob resource. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -105506,35 +108953,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 HyperparameterTuningJob resource. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @@ -105604,28 +109050,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} - * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the HyperparameterTuningJob resource. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Required. The name of the IndexEndpoint resource. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} - * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } this.name = name; return this; @@ -105637,14 +109083,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists HyperparameterTuningJobs in a Location. + * Lists IndexEndpoints in a Location. * - * Create a request for the method "hyperparameterTuningJobs.list". + * Create a request for the method "indexEndpoints.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 HyperparameterTuningJobs from. Format: + * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -105654,29 +109100,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. 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.GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.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(), @@ -105751,13 +109197,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to list the HyperparameterTuningJobs from. + * Required. The resource name of the Location from which to list the IndexEndpoints. * 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 HyperparameterTuningJobs from. Format: + /** Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -105765,7 +109211,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to list the HyperparameterTuningJobs from. + * Required. The resource name of the Location from which to list the IndexEndpoints. * Format: `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { @@ -105779,98 +109225,103 @@ public List setParent(java.lang.String parent) { } /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. + * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the + * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses + * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + * `regex(display_name, "^A") -> The display name starts with an A. * + * `labels.myKey="myValue"` */ @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:*` + /** Optional. An expression for filtering the results of the request. For field names both snake_case + and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the + IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` + supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * + `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + `regex(display_name, "^A") -> The display name starts with an A. * `labels.myKey="myValue"` */ public java.lang.String getFilter() { return filter; } /** - * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * - * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be - * in RFC 3339 format. * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of - * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * - * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * - * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. + * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the + * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses + * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + * `regex(display_name, "^A") -> The display name starts with an A. * + * `labels.myKey="myValue"` */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** Optional. The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** Optional. The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** Optional. 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 - * ListHyperparameterTuningJobsResponse.next_page_token of the previous - * JobService.ListHyperparameterTuningJobs call. + * Optional. The standard list page token. Typically obtained via + * ListIndexEndpointsResponse.next_page_token of the previous + * IndexEndpointService.ListIndexEndpoints call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. Typically obtained via - ListHyperparameterTuningJobsResponse.next_page_token of the previous - JobService.ListHyperparameterTuningJobs call. + /** Optional. The standard list page token. Typically obtained via + ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints + call. */ public java.lang.String getPageToken() { return pageToken; } /** - * The standard list page token. Typically obtained via - * ListHyperparameterTuningJobsResponse.next_page_token of the previous - * JobService.ListHyperparameterTuningJobs call. + * Optional. The standard list page token. Typically obtained via + * ListIndexEndpointsResponse.next_page_token of the previous + * IndexEndpointService.ListIndexEndpoints call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Mask specifying which fields to read. */ + /** Optional. Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Mask specifying which fields to read. + /** Optional. Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Mask specifying which fields to read. */ + /** Optional. Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -105881,6 +109332,577 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Update an existing DeployedIndex under an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.mutateDeployedIndex". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} + * @return the request + */ + public MutateDeployedIndex mutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) throws java.io.IOException { + MutateDeployedIndex result = new MutateDeployedIndex(indexEndpoint, content); + initialize(result); + return result; + } + + public class MutateDeployedIndex extends AiplatformRequest{@link MutateDeployedIndex#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} + * @since 1.13 + */ + protected MutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + } + + @Override + public MutateDeployedIndex set$Xgafv(java.lang.String $Xgafv) { + return (MutateDeployedIndex) super.set$Xgafv($Xgafv); + } + + @Override + public MutateDeployedIndex setAccessToken(java.lang.String accessToken) { + return (MutateDeployedIndex) super.setAccessToken(accessToken); + } + + @Override + public MutateDeployedIndex setAlt(java.lang.String alt) { + return (MutateDeployedIndex) super.setAlt(alt); + } + + @Override + public MutateDeployedIndex setCallback(java.lang.String callback) { + return (MutateDeployedIndex) super.setCallback(callback); + } + + @Override + public MutateDeployedIndex setFields(java.lang.String fields) { + return (MutateDeployedIndex) super.setFields(fields); + } + + @Override + public MutateDeployedIndex setKey(java.lang.String key) { + return (MutateDeployedIndex) super.setKey(key); + } + + @Override + public MutateDeployedIndex setOauthToken(java.lang.String oauthToken) { + return (MutateDeployedIndex) super.setOauthToken(oauthToken); + } + + @Override + public MutateDeployedIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MutateDeployedIndex) super.setPrettyPrint(prettyPrint); + } + + @Override + public MutateDeployedIndex setQuotaUser(java.lang.String quotaUser) { + return (MutateDeployedIndex) super.setQuotaUser(quotaUser); + } + + @Override + public MutateDeployedIndex setUploadType(java.lang.String uploadType) { + return (MutateDeployedIndex) super.setUploadType(uploadType); + } + + @Override + public MutateDeployedIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (MutateDeployedIndex) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; + + /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public MutateDeployedIndex setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + this.indexEndpoint = indexEndpoint; + return this; + } + + @Override + public MutateDeployedIndex set(String parameterName, Object value) { + return (MutateDeployedIndex) super.set(parameterName, value); + } + } + /** + * Updates an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.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. The resource name of the IndexEndpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint 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. The resource name of the IndexEndpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + } + + @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. The resource name of the IndexEndpoint. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. The resource name of the IndexEndpoint. + */ + public java.lang.String getName() { + return name; + } + + /** Output only. The resource name of the IndexEndpoint. */ + 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/[^/]+/indexEndpoints/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a + * batch. + * + * Create a request for the method "indexEndpoints.readIndexDatapoints". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} + * @return the request + */ + public ReadIndexDatapoints readIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) throws java.io.IOException { + ReadIndexDatapoints result = new ReadIndexDatapoints(indexEndpoint, content); + initialize(result); + return result; + } + + public class ReadIndexDatapoints extends AiplatformRequest{@link ReadIndexDatapoints#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} + * @since 1.13 + */ + protected ReadIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + } + + @Override + public ReadIndexDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (ReadIndexDatapoints) super.set$Xgafv($Xgafv); + } + + @Override + public ReadIndexDatapoints setAccessToken(java.lang.String accessToken) { + return (ReadIndexDatapoints) super.setAccessToken(accessToken); + } + + @Override + public ReadIndexDatapoints setAlt(java.lang.String alt) { + return (ReadIndexDatapoints) super.setAlt(alt); + } + + @Override + public ReadIndexDatapoints setCallback(java.lang.String callback) { + return (ReadIndexDatapoints) super.setCallback(callback); + } + + @Override + public ReadIndexDatapoints setFields(java.lang.String fields) { + return (ReadIndexDatapoints) super.setFields(fields); + } + + @Override + public ReadIndexDatapoints setKey(java.lang.String key) { + return (ReadIndexDatapoints) super.setKey(key); + } + + @Override + public ReadIndexDatapoints setOauthToken(java.lang.String oauthToken) { + return (ReadIndexDatapoints) super.setOauthToken(oauthToken); + } + + @Override + public ReadIndexDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReadIndexDatapoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReadIndexDatapoints setQuotaUser(java.lang.String quotaUser) { + return (ReadIndexDatapoints) super.setQuotaUser(quotaUser); + } + + @Override + public ReadIndexDatapoints setUploadType(java.lang.String uploadType) { + return (ReadIndexDatapoints) super.setUploadType(uploadType); + } + + @Override + public ReadIndexDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ReadIndexDatapoints) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; + + /** Required. The name of the index endpoint. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } + + /** + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public ReadIndexDatapoints setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + this.indexEndpoint = indexEndpoint; + return this; + } + + @Override + public ReadIndexDatapoints set(String parameterName, Object value) { + return (ReadIndexDatapoints) super.set(parameterName, value); + } + } + /** + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. + * + * Create a request for the method "indexEndpoints.undeployIndex". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UndeployIndex#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @return the request + */ + public UndeployIndex undeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) throws java.io.IOException { + UndeployIndex result = new UndeployIndex(indexEndpoint, content); + initialize(result); + return result; + } + + public class UndeployIndex extends AiplatformRequest{@link UndeployIndex#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @since 1.13 + */ + protected UndeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + } + + @Override + public UndeployIndex set$Xgafv(java.lang.String $Xgafv) { + return (UndeployIndex) super.set$Xgafv($Xgafv); + } + + @Override + public UndeployIndex setAccessToken(java.lang.String accessToken) { + return (UndeployIndex) super.setAccessToken(accessToken); + } + + @Override + public UndeployIndex setAlt(java.lang.String alt) { + return (UndeployIndex) super.setAlt(alt); + } + + @Override + public UndeployIndex setCallback(java.lang.String callback) { + return (UndeployIndex) super.setCallback(callback); + } + + @Override + public UndeployIndex setFields(java.lang.String fields) { + return (UndeployIndex) super.setFields(fields); + } + + @Override + public UndeployIndex setKey(java.lang.String key) { + return (UndeployIndex) super.setKey(key); + } + + @Override + public UndeployIndex setOauthToken(java.lang.String oauthToken) { + return (UndeployIndex) super.setOauthToken(oauthToken); + } + + @Override + public UndeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UndeployIndex) super.setPrettyPrint(prettyPrint); + } + + @Override + public UndeployIndex setQuotaUser(java.lang.String quotaUser) { + return (UndeployIndex) super.setQuotaUser(quotaUser); + } + + @Override + public UndeployIndex setUploadType(java.lang.String uploadType) { + return (UndeployIndex) super.setUploadType(uploadType); + } + + @Override + public UndeployIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (UndeployIndex) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the IndexEndpoint resource from which to undeploy an Index. + * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; + + /** Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } + + /** + * Required. The name of the IndexEndpoint resource from which to undeploy an Index. + * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public UndeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + this.indexEndpoint = indexEndpoint; + return this; + } + + @Override + public UndeployIndex set(String parameterName, Object value) { + return (UndeployIndex) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Operations collection. @@ -105930,7 +109952,7 @@ public class Cancel extends AiplatformRequest
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.IndexEndpoints.List request = aiplatform.indexEndpoints().list(parameters ...)}
+ * {@code Aiplatform.Indexes.List request = aiplatform.indexes().list(parameters ...)}
*
*
* @return the resource collection
*/
- public IndexEndpoints indexEndpoints() {
- return new IndexEndpoints();
+ public Indexes indexes() {
+ return new Indexes();
}
/**
- * The "indexEndpoints" collection of methods.
+ * The "indexes" collection of methods.
*/
- public class IndexEndpoints {
+ public class Indexes {
/**
- * Creates an IndexEndpoint.
+ * Creates an Index.
*
- * Create a request for the method "indexEndpoints.create".
+ * Create a request for the method "indexes.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 IndexEndpoint in. Format:
+ * @param parent Required. The resource name of the Location to create the Index in. Format:
* `projects/{project}/locations/{location}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint}
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -106749,15 +110771,15 @@ public Create create(java.lang.String parent, com.google.api.services.aiplatform
public class Create extends AiplatformRequest{@link - * DeployIndex#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 indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @since 1.13 */ - protected DeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public DeployIndex set$Xgafv(java.lang.String $Xgafv) { - return (DeployIndex) super.set$Xgafv($Xgafv); - } - - @Override - public DeployIndex setAccessToken(java.lang.String accessToken) { - return (DeployIndex) super.setAccessToken(accessToken); - } - - @Override - public DeployIndex setAlt(java.lang.String alt) { - return (DeployIndex) super.setAlt(alt); - } - - @Override - public DeployIndex setCallback(java.lang.String callback) { - return (DeployIndex) super.setCallback(callback); - } - - @Override - public DeployIndex setFields(java.lang.String fields) { - return (DeployIndex) super.setFields(fields); - } - - @Override - public DeployIndex setKey(java.lang.String key) { - return (DeployIndex) super.setKey(key); - } - - @Override - public DeployIndex setOauthToken(java.lang.String oauthToken) { - return (DeployIndex) super.setOauthToken(oauthToken); - } - - @Override - public DeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeployIndex) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeployIndex setQuotaUser(java.lang.String quotaUser) { - return (DeployIndex) super.setQuotaUser(quotaUser); - } - - @Override - public DeployIndex setUploadType(java.lang.String uploadType) { - return (DeployIndex) super.setUploadType(uploadType); - } - - @Override - public DeployIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (DeployIndex) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String indexEndpoint; - - /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public DeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - this.indexEndpoint = indexEndpoint; - return this; + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeployIndex set(String parameterName, Object value) { - return (DeployIndex) super.set(parameterName, value); - } - } - /** - * Finds the nearest neighbors of each vector within the request. - * - * Create a request for the method "indexEndpoints.findNeighbors". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link FindNeighbors#execute()} method to invoke the remote operation. - * - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} - * @return the request - */ - public FindNeighbors findNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) throws java.io.IOException { - FindNeighbors result = new FindNeighbors(indexEndpoint, content); - initialize(result); - return result; - } - - public class FindNeighbors extends AiplatformRequest{@link FindNeighbors#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
- * - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} - * @since 1.13 - */ - protected FindNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsResponse.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public FindNeighbors set$Xgafv(java.lang.String $Xgafv) { - return (FindNeighbors) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public FindNeighbors setAccessToken(java.lang.String accessToken) { - return (FindNeighbors) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public FindNeighbors setAlt(java.lang.String alt) { - return (FindNeighbors) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public FindNeighbors setCallback(java.lang.String callback) { - return (FindNeighbors) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public FindNeighbors setFields(java.lang.String fields) { - return (FindNeighbors) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public FindNeighbors setKey(java.lang.String key) { - return (FindNeighbors) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public FindNeighbors setOauthToken(java.lang.String oauthToken) { - return (FindNeighbors) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public FindNeighbors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FindNeighbors) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public FindNeighbors setQuotaUser(java.lang.String quotaUser) { - return (FindNeighbors) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public FindNeighbors setUploadType(java.lang.String uploadType) { - return (FindNeighbors) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public FindNeighbors setUploadProtocol(java.lang.String uploadProtocol) { - return (FindNeighbors) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String name; - /** Required. The name of the index endpoint. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public FindNeighbors setIndexEndpoint(java.lang.String indexEndpoint) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.name = name; return this; } @Override - public FindNeighbors set(String parameterName, Object value) { - return (FindNeighbors) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets an IndexEndpoint. + * Imports an Index from an external source (e.g., BigQuery). * - * Create a request for the method "indexEndpoints.get". + * Create a request for the method "indexes.import". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link AiplatformImport#execute()} method to invoke the remote operation. * - * @param name Required. The name of the IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest content) throws java.io.IOException { + AiplatformImport result = new AiplatformImport(name, content); initialize(result); return result; } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link AiplatformImport#execute()} method to invoke the remote + * operation.{@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 IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.class); + protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { + return (AiplatformImport) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AiplatformImport setAccessToken(java.lang.String accessToken) { + return (AiplatformImport) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AiplatformImport setAlt(java.lang.String alt) { + return (AiplatformImport) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the IndexEndpoint resource. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to import data to. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public Get setName(java.lang.String name) { + 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AiplatformImport set(String parameterName, Object value) { + return (AiplatformImport) super.set(parameterName, value); } } /** - * Lists IndexEndpoints in a Location. + * Lists Indexes in a Location. * - * Create a request for the method "indexEndpoints.list". + * Create a request for the method "indexes.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. Format: + * @param parent Required. The resource name of the Location from which to list the Indexes. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -107451,29 +111334,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends AiplatformRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. Format: + * @param parent Required. The resource name of the Location from which to list the Indexes. 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.GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListIndexesResponse.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(), @@ -107548,13 +111431,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location from which to list the IndexEndpoints. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the Indexes. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location from which to list the IndexEndpoints. Format: + /** Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -107562,8 +111445,8 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location from which to list the IndexEndpoints. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the Indexes. Format: + * `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -107575,104 +111458,72 @@ public List setParent(java.lang.String parent) { return this; } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. - * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the - * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses - * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - * `regex(display_name, "^A") -> The display name starts with an A. * - * `labels.myKey="myValue"` - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. An expression for filtering the results of the request. For field names both snake_case - and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the - IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` - supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * - `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - `regex(display_name, "^A") -> The display name starts with an A. * `labels.myKey="myValue"` + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. - * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the - * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses - * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - * `regex(display_name, "^A") -> The display name starts with an A. * - * `labels.myKey="myValue"` - */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The standard list page size. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. The standard list page token. Typically obtained via - * ListIndexEndpointsResponse.next_page_token of the previous - * IndexEndpointService.ListIndexEndpoints call. + * The standard list page token. Typically obtained via + * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. The standard list page token. Typically obtained via - ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints - call. + /** The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the + previous IndexService.ListIndexes call. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. The standard list page token. Typically obtained via - * ListIndexEndpointsResponse.next_page_token of the previous - * IndexEndpointService.ListIndexEndpoints call. + * The standard list page token. Typically obtained via + * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Optional. Mask specifying which fields to read. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -107684,174 +111535,34 @@ public List set(String parameterName, Object value) { } } /** - * Update an existing DeployedIndex under an IndexEndpoint. - * - * Create a request for the method "indexEndpoints.mutateDeployedIndex". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote operation. - * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} - * @return the request - */ - public MutateDeployedIndex mutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) throws java.io.IOException { - MutateDeployedIndex result = new MutateDeployedIndex(indexEndpoint, content); - initialize(result); - return result; - } - - public class MutateDeployedIndex extends AiplatformRequest{@link MutateDeployedIndex#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} - * @since 1.13 - */ - protected MutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - } - - @Override - public MutateDeployedIndex set$Xgafv(java.lang.String $Xgafv) { - return (MutateDeployedIndex) super.set$Xgafv($Xgafv); - } - - @Override - public MutateDeployedIndex setAccessToken(java.lang.String accessToken) { - return (MutateDeployedIndex) super.setAccessToken(accessToken); - } - - @Override - public MutateDeployedIndex setAlt(java.lang.String alt) { - return (MutateDeployedIndex) super.setAlt(alt); - } - - @Override - public MutateDeployedIndex setCallback(java.lang.String callback) { - return (MutateDeployedIndex) super.setCallback(callback); - } - - @Override - public MutateDeployedIndex setFields(java.lang.String fields) { - return (MutateDeployedIndex) super.setFields(fields); - } - - @Override - public MutateDeployedIndex setKey(java.lang.String key) { - return (MutateDeployedIndex) super.setKey(key); - } - - @Override - public MutateDeployedIndex setOauthToken(java.lang.String oauthToken) { - return (MutateDeployedIndex) super.setOauthToken(oauthToken); - } - - @Override - public MutateDeployedIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutateDeployedIndex) super.setPrettyPrint(prettyPrint); - } - - @Override - public MutateDeployedIndex setQuotaUser(java.lang.String quotaUser) { - return (MutateDeployedIndex) super.setQuotaUser(quotaUser); - } - - @Override - public MutateDeployedIndex setUploadType(java.lang.String uploadType) { - return (MutateDeployedIndex) super.setUploadType(uploadType); - } - - @Override - public MutateDeployedIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (MutateDeployedIndex) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String indexEndpoint; - - /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public MutateDeployedIndex setIndexEndpoint(java.lang.String indexEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - this.indexEndpoint = indexEndpoint; - return this; - } - - @Override - public MutateDeployedIndex set(String parameterName, Object value) { - return (MutateDeployedIndex) super.set(parameterName, value); - } - } - /** - * Updates an IndexEndpoint. + * Updates an Index. * - * Create a request for the method "indexEndpoints.patch". + * Create a request for the method "indexes.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. The resource name of the IndexEndpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @param name Output only. The resource name of the Index. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest{@link ReadIndexDatapoints#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * optional parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote + * operation.
{@link RemoveDatapoints#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.
* - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} * @since 1.13 */ - protected ReadIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + protected RemoveDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.class); + this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public ReadIndexDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (ReadIndexDatapoints) super.set$Xgafv($Xgafv); + public RemoveDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (RemoveDatapoints) super.set$Xgafv($Xgafv); } @Override - public ReadIndexDatapoints setAccessToken(java.lang.String accessToken) { - return (ReadIndexDatapoints) super.setAccessToken(accessToken); + public RemoveDatapoints setAccessToken(java.lang.String accessToken) { + return (RemoveDatapoints) super.setAccessToken(accessToken); } @Override - public ReadIndexDatapoints setAlt(java.lang.String alt) { - return (ReadIndexDatapoints) super.setAlt(alt); + public RemoveDatapoints setAlt(java.lang.String alt) { + return (RemoveDatapoints) super.setAlt(alt); } @Override - public ReadIndexDatapoints setCallback(java.lang.String callback) { - return (ReadIndexDatapoints) super.setCallback(callback); + public RemoveDatapoints setCallback(java.lang.String callback) { + return (RemoveDatapoints) super.setCallback(callback); } @Override - public ReadIndexDatapoints setFields(java.lang.String fields) { - return (ReadIndexDatapoints) super.setFields(fields); + public RemoveDatapoints setFields(java.lang.String fields) { + return (RemoveDatapoints) super.setFields(fields); } @Override - public ReadIndexDatapoints setKey(java.lang.String key) { - return (ReadIndexDatapoints) super.setKey(key); + public RemoveDatapoints setKey(java.lang.String key) { + return (RemoveDatapoints) super.setKey(key); } @Override - public ReadIndexDatapoints setOauthToken(java.lang.String oauthToken) { - return (ReadIndexDatapoints) super.setOauthToken(oauthToken); + public RemoveDatapoints setOauthToken(java.lang.String oauthToken) { + return (RemoveDatapoints) super.setOauthToken(oauthToken); } @Override - public ReadIndexDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReadIndexDatapoints) super.setPrettyPrint(prettyPrint); + public RemoveDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveDatapoints) super.setPrettyPrint(prettyPrint); } @Override - public ReadIndexDatapoints setQuotaUser(java.lang.String quotaUser) { - return (ReadIndexDatapoints) super.setQuotaUser(quotaUser); + public RemoveDatapoints setQuotaUser(java.lang.String quotaUser) { + return (RemoveDatapoints) super.setQuotaUser(quotaUser); } @Override - public ReadIndexDatapoints setUploadType(java.lang.String uploadType) { - return (ReadIndexDatapoints) super.setUploadType(uploadType); + public RemoveDatapoints setUploadType(java.lang.String uploadType) { + return (RemoveDatapoints) super.setUploadType(uploadType); } @Override - public ReadIndexDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ReadIndexDatapoints) super.setUploadProtocol(uploadProtocol); + public RemoveDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveDatapoints) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String index; - /** Required. The name of the index endpoint. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to be updated. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getIndex() { + return index; } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public ReadIndexDatapoints setIndexEndpoint(java.lang.String indexEndpoint) { + public RemoveDatapoints setIndex(java.lang.String index) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.index = index; return this; } @Override - public ReadIndexDatapoints set(String parameterName, Object value) { - return (ReadIndexDatapoints) super.set(parameterName, value); + public RemoveDatapoints set(String parameterName, Object value) { + return (RemoveDatapoints) super.set(parameterName, value); } } /** - * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all - * resources it's using. + * Add/update Datapoints into an Index. * - * Create a request for the method "indexEndpoints.undeployIndex". + * Create a request for the method "indexes.upsertDatapoints". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UndeployIndex#execute()} method to invoke the remote operation. + * parameters, call the {@link UpsertDatapoints#execute()} method to invoke the remote operation. * - * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} * @return the request */ - public UndeployIndex undeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) throws java.io.IOException { - UndeployIndex result = new UndeployIndex(indexEndpoint, content); + public UpsertDatapoints upsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) throws java.io.IOException { + UpsertDatapoints result = new UpsertDatapoints(index, content); initialize(result); return result; } - public class UndeployIndex extends AiplatformRequest{@link UndeployIndex#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link UpsertDatapoints#execute()} method to invoke the remote + * operation.{@link UpsertDatapoints#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} * @since 1.13 */ - protected UndeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + protected UpsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.class); + this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public UndeployIndex set$Xgafv(java.lang.String $Xgafv) { - return (UndeployIndex) super.set$Xgafv($Xgafv); + public UpsertDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (UpsertDatapoints) super.set$Xgafv($Xgafv); } @Override - public UndeployIndex setAccessToken(java.lang.String accessToken) { - return (UndeployIndex) super.setAccessToken(accessToken); + public UpsertDatapoints setAccessToken(java.lang.String accessToken) { + return (UpsertDatapoints) super.setAccessToken(accessToken); } @Override - public UndeployIndex setAlt(java.lang.String alt) { - return (UndeployIndex) super.setAlt(alt); + public UpsertDatapoints setAlt(java.lang.String alt) { + return (UpsertDatapoints) super.setAlt(alt); } @Override - public UndeployIndex setCallback(java.lang.String callback) { - return (UndeployIndex) super.setCallback(callback); + public UpsertDatapoints setCallback(java.lang.String callback) { + return (UpsertDatapoints) super.setCallback(callback); } @Override - public UndeployIndex setFields(java.lang.String fields) { - return (UndeployIndex) super.setFields(fields); + public UpsertDatapoints setFields(java.lang.String fields) { + return (UpsertDatapoints) super.setFields(fields); } @Override - public UndeployIndex setKey(java.lang.String key) { - return (UndeployIndex) super.setKey(key); + public UpsertDatapoints setKey(java.lang.String key) { + return (UpsertDatapoints) super.setKey(key); } @Override - public UndeployIndex setOauthToken(java.lang.String oauthToken) { - return (UndeployIndex) super.setOauthToken(oauthToken); + public UpsertDatapoints setOauthToken(java.lang.String oauthToken) { + return (UpsertDatapoints) super.setOauthToken(oauthToken); } @Override - public UndeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UndeployIndex) super.setPrettyPrint(prettyPrint); + public UpsertDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpsertDatapoints) super.setPrettyPrint(prettyPrint); } @Override - public UndeployIndex setQuotaUser(java.lang.String quotaUser) { - return (UndeployIndex) super.setQuotaUser(quotaUser); + public UpsertDatapoints setQuotaUser(java.lang.String quotaUser) { + return (UpsertDatapoints) super.setQuotaUser(quotaUser); } @Override - public UndeployIndex setUploadType(java.lang.String uploadType) { - return (UndeployIndex) super.setUploadType(uploadType); + public UpsertDatapoints setUploadType(java.lang.String uploadType) { + return (UpsertDatapoints) super.setUploadType(uploadType); } @Override - public UndeployIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (UndeployIndex) super.setUploadProtocol(uploadProtocol); + public UpsertDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (UpsertDatapoints) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the IndexEndpoint resource from which to undeploy an Index. - * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String index; - /** Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to be updated. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getIndex() { + return index; } /** - * Required. The name of the IndexEndpoint resource from which to undeploy an Index. - * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public UndeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { + public UpsertDatapoints setIndex(java.lang.String index) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.index = index; return this; } @Override - public UndeployIndex set(String parameterName, Object value) { - return (UndeployIndex) super.set(parameterName, value); + public UpsertDatapoints set(String parameterName, Object value) { + return (UpsertDatapoints) super.set(parameterName, value); } } @@ -108303,7 +112017,7 @@ public class Cancel extends AiplatformRequest
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Indexes.List request = aiplatform.indexes().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Indexes indexes() {
- return new Indexes();
- }
-
- /**
- * The "indexes" collection of methods.
- */
- public class Indexes {
-
- /**
- * Creates an Index.
- *
- * Create a request for the method "indexes.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 Index in. Format:
- * `projects/{project}/locations/{location}`
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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 Index in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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 Index 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 Index in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to create the Index 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 an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. - * - * Create a request for the method "indexes.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 Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @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 Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @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/[^/]+/indexes/[^/]+$"); - } - } - - @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 Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Index resource to be deleted. Format: - `projects/{project}/locations/{location}/indexes/{index}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets an Index. - * - * Create a request for the method "indexes.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 Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @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 Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); - } - } - - @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 Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Index resource. Format: - `projects/{project}/locations/{location}/indexes/{index}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Imports an Index from an external source (e.g., BigQuery). - * - * Create a request for the method "indexes.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 Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} - * @return the request - */ - public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest 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 Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} - * @since 1.13 - */ - protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest 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/[^/]+/indexes/[^/]+$"); - } - } - - @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 Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Index resource to import data to. Format: - `projects/{project}/locations/{location}/indexes/{index}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); - } - } - /** - * Lists Indexes in a Location. - * - * Create a request for the method "indexes.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the Location from which to list the Indexes. 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 from which to list the Indexes. 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.GoogleCloudAiplatformV1beta1ListIndexesResponse.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 from which to list the Indexes. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + return (Wait) super.setCallback(callback); + } - /** Required. The resource name of the Location from which to list the Indexes. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - /** - * Required. The resource name of the Location from which to list the Indexes. 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 Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } - this.parent = parent; - return this; - } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** 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. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * The standard list page token. Typically obtained via - * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the - previous IndexService.ListIndexes call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** - * The standard list page token. Typically obtained via - * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. - */ - 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. + */ + @com.google.api.client.util.Key + private String timeout; - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + /** 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; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** + * 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. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } } + } + /** + * An accessor for creating requests from the Interactions collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Interactions interactions() {
+ return new Interactions();
+ }
+
+ /**
+ * The "interactions" collection of methods.
+ */
+ public class Interactions {
+
/**
- * Updates an Index.
+ * Creates an interaction.
*
- * Create a request for the method "indexes.patch".
+ * Create a request for the method "interactions.create".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name Output only. The resource name of the Index.
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index}
+ * @param projectsId
+ * @param locationsId
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest}
* @return the request
*/
- public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException {
- Patch result = new Patch(name, content);
+ public Create create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException {
+ Create result = new Create(projectsId, locationsId, content);
initialize(result);
return result;
}
- public class Patch extends AiplatformRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Output only. The resource name of the Index. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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/[^/]+/indexes/[^/]+$"); - } + protected Create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1Interaction.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Output only. The resource name of the Index. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String projectsId; + + /** - /** Output only. The resource name of the Index. */ - public java.lang.String getName() { - return name; + public java.lang.String getProjectsId() { + return projectsId; } - /** Output only. The resource name of the Index. */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; + public Create setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; return this; } - /** - * The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String locationsId; + + /** - /** The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getLocationsId() { + return locationsId; } - /** - * The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Create setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Remove Datapoints from an Index. + * Creates an interaction and streams the response. * - * Create a request for the method "indexes.removeDatapoints". + * Create a request for the method "interactions.createStream". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateStream#execute()} method to invoke the remote operation. * - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @return the request */ - public RemoveDatapoints removeDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) throws java.io.IOException { - RemoveDatapoints result = new RemoveDatapoints(index, content); + public CreateStream createStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { + CreateStream result = new CreateStream(projectsId, locationsId, content); initialize(result); return result; } - public class RemoveDatapoints extends AiplatformRequest{@link RemoveDatapoints#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 CreateStream#execute()} method to invoke the remote + * operation.{@link + * CreateStream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @since 1.13 */ - protected RemoveDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.class); - this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); - } + protected CreateStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1InteractionStreamingEvent.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); } @Override - public RemoveDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (RemoveDatapoints) super.set$Xgafv($Xgafv); + public CreateStream set$Xgafv(java.lang.String $Xgafv) { + return (CreateStream) super.set$Xgafv($Xgafv); } @Override - public RemoveDatapoints setAccessToken(java.lang.String accessToken) { - return (RemoveDatapoints) super.setAccessToken(accessToken); + public CreateStream setAccessToken(java.lang.String accessToken) { + return (CreateStream) super.setAccessToken(accessToken); } @Override - public RemoveDatapoints setAlt(java.lang.String alt) { - return (RemoveDatapoints) super.setAlt(alt); + public CreateStream setAlt(java.lang.String alt) { + return (CreateStream) super.setAlt(alt); } @Override - public RemoveDatapoints setCallback(java.lang.String callback) { - return (RemoveDatapoints) super.setCallback(callback); + public CreateStream setCallback(java.lang.String callback) { + return (CreateStream) super.setCallback(callback); } @Override - public RemoveDatapoints setFields(java.lang.String fields) { - return (RemoveDatapoints) super.setFields(fields); + public CreateStream setFields(java.lang.String fields) { + return (CreateStream) super.setFields(fields); } @Override - public RemoveDatapoints setKey(java.lang.String key) { - return (RemoveDatapoints) super.setKey(key); + public CreateStream setKey(java.lang.String key) { + return (CreateStream) super.setKey(key); } @Override - public RemoveDatapoints setOauthToken(java.lang.String oauthToken) { - return (RemoveDatapoints) super.setOauthToken(oauthToken); + public CreateStream setOauthToken(java.lang.String oauthToken) { + return (CreateStream) super.setOauthToken(oauthToken); } @Override - public RemoveDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveDatapoints) super.setPrettyPrint(prettyPrint); + public CreateStream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateStream) super.setPrettyPrint(prettyPrint); } @Override - public RemoveDatapoints setQuotaUser(java.lang.String quotaUser) { - return (RemoveDatapoints) super.setQuotaUser(quotaUser); + public CreateStream setQuotaUser(java.lang.String quotaUser) { + return (CreateStream) super.setQuotaUser(quotaUser); } @Override - public RemoveDatapoints setUploadType(java.lang.String uploadType) { - return (RemoveDatapoints) super.setUploadType(uploadType); + public CreateStream setUploadType(java.lang.String uploadType) { + return (CreateStream) super.setUploadType(uploadType); } @Override - public RemoveDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveDatapoints) super.setUploadProtocol(uploadProtocol); + public CreateStream setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateStream) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ @com.google.api.client.util.Key - private java.lang.String index; + private java.lang.String projectsId; + + /** - /** Required. The name of the Index resource to be updated. Format: - `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndex() { - return index; + public java.lang.String getProjectsId() { + return projectsId; + } + + public CreateStream setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; + return this; } + @com.google.api.client.util.Key + private java.lang.String locationsId; + /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + */ - public RemoveDatapoints setIndex(java.lang.String index) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); - } - this.index = index; + public java.lang.String getLocationsId() { + return locationsId; + } + + public CreateStream setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; return this; } @Override - public RemoveDatapoints set(String parameterName, Object value) { - return (RemoveDatapoints) super.set(parameterName, value); + public CreateStream set(String parameterName, Object value) { + return (CreateStream) super.set(parameterName, value); } } /** - * Add/update Datapoints into an Index. + * Deletes an interaction. * - * Create a request for the method "indexes.upsertDatapoints". + * Create a request for the method "interactions.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UpsertDatapoints#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} * @return the request */ - public UpsertDatapoints upsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) throws java.io.IOException { - UpsertDatapoints result = new UpsertDatapoints(index, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class UpsertDatapoints extends AiplatformRequest{@link UpsertDatapoints#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 Delete#execute()} method to invoke the remote operation. + *{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} * @since 1.13 */ - protected UpsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.class); - this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1DeleteInteractionResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); } } @Override - public UpsertDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (UpsertDatapoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public UpsertDatapoints setAccessToken(java.lang.String accessToken) { - return (UpsertDatapoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public UpsertDatapoints setAlt(java.lang.String alt) { - return (UpsertDatapoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public UpsertDatapoints setCallback(java.lang.String callback) { - return (UpsertDatapoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public UpsertDatapoints setFields(java.lang.String fields) { - return (UpsertDatapoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public UpsertDatapoints setKey(java.lang.String key) { - return (UpsertDatapoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public UpsertDatapoints setOauthToken(java.lang.String oauthToken) { - return (UpsertDatapoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public UpsertDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpsertDatapoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public UpsertDatapoints setQuotaUser(java.lang.String quotaUser) { - return (UpsertDatapoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public UpsertDatapoints setUploadType(java.lang.String uploadType) { - return (UpsertDatapoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public UpsertDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (UpsertDatapoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The name of the interaction to delete. Format: interactions/{interaction} */ @com.google.api.client.util.Key - private java.lang.String index; + private java.lang.String name; - /** Required. The name of the Index resource to be updated. Format: - `projects/{project}/locations/{location}/indexes/{index}` + /** Required. The name of the interaction to delete. Format: interactions/{interaction} */ - public java.lang.String getIndex() { - return index; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The name of the interaction to delete. Format: interactions/{interaction} */ - public UpsertDatapoints setIndex(java.lang.String index) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); } - this.index = index; + this.name = name; return this; } @Override - public UpsertDatapoints set(String parameterName, Object value) { - return (UpsertDatapoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } + } + /** + * An accessor for creating requests from the MemoryBanks collection. + * + *The typical use is:
+ *
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.MemoryBanks.List request = aiplatform.memoryBanks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public MemoryBanks memoryBanks() {
+ return new MemoryBanks();
+ }
+
+ /**
+ * The "memoryBanks" collection of methods.
+ */
+ public class MemoryBanks {
+
/**
- * An accessor for creating requests from the Operations collection.
+ * An accessor for creating requests from the Memories collection.
*
* The typical use is:
*
* {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+ * {@code Aiplatform.Memories.List request = aiplatform.memories().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Operations operations() {
- return new Operations();
+ public Memories memories() {
+ return new Memories();
}
/**
- * The "operations" collection of methods.
+ * The "memories" collection of methods.
*/
- public class Operations {
+ public class Memories {
/**
- * 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 Memory.
*
- * Create a request for the method "operations.cancel".
+ * Create a request for the method "memories.create".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource to be cancelled.
+ * @param parent Required. The resource name of the ReasoningEngine to create the Memory under. Format:
+ * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory}
* @return the request
*/
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be cancelled. + * @param parent Required. The resource name of the ReasoningEngine to create the Memory under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory} * @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."); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The resource name of the ReasoningEngine to create the Memory under. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be cancelled. + /** Required. The resource name of the ReasoningEngine to create the Memory under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. The resource name of the ReasoningEngine to create the Memory under. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public Create 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * Optional. The user defined ID to use for memory, which will become the final + * component of the memory resource name. If not provided, Vertex AI will generate a + * value for this ID. This value may be up to 63 characters, and valid characters are + * `[a-z0-9-]`. The first character must be a letter, and the last character must be a + * letter or number. + */ + @com.google.api.client.util.Key + private java.lang.String memoryId; + + /** Optional. The user defined ID to use for memory, which will become the final component of the + memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may + be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, + and the last character must be a letter or number. + */ + public java.lang.String getMemoryId() { + return memoryId; + } + + /** + * Optional. The user defined ID to use for memory, which will become the final + * component of the memory resource name. If not provided, Vertex AI will generate a + * value for this ID. This value may be up to 63 characters, and valid characters are + * `[a-z0-9-]`. The first character must be a letter, and the last character must be a + * letter or number. + */ + public Create setMemoryId(java.lang.String memoryId) { + this.memoryId = memoryId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) 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`. + * Delete a Memory. * - * Create a request for the method "operations.delete". + * Create a request for the method "memories.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 resource name of the Memory to delete. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -110500,19 +113450,17 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends AiplatformRequest{@link + * Generate#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 ReasoningEngine to generate memories for. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateMemoriesRequest} + * @since 1.13 + */ + protected Generate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateMemoriesRequest 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/[^/]+/memoryBanks/[^/]+$"); + } + } + + @Override + public Generate set$Xgafv(java.lang.String $Xgafv) { + return (Generate) super.set$Xgafv($Xgafv); + } + + @Override + public Generate setAccessToken(java.lang.String accessToken) { + return (Generate) super.setAccessToken(accessToken); + } + + @Override + public Generate setAlt(java.lang.String alt) { + return (Generate) super.setAlt(alt); + } + + @Override + public Generate setCallback(java.lang.String callback) { + return (Generate) super.setCallback(callback); + } + + @Override + public Generate setFields(java.lang.String fields) { + return (Generate) super.setFields(fields); + } + + @Override + public Generate setKey(java.lang.String key) { + return (Generate) super.setKey(key); + } + + @Override + public Generate setOauthToken(java.lang.String oauthToken) { + return (Generate) super.setOauthToken(oauthToken); + } + + @Override + public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Generate setQuotaUser(java.lang.String quotaUser) { + return (Generate) super.setQuotaUser(quotaUser); + } + + @Override + public Generate setUploadType(java.lang.String uploadType) { + return (Generate) super.setUploadType(uploadType); + } + + @Override + public Generate setUploadProtocol(java.lang.String uploadProtocol) { + return (Generate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the ReasoningEngine to generate memories for. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the ReasoningEngine to generate memories for. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the ReasoningEngine to generate memories for. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public Generate 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/[^/]+/memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); + } + } + /** + * Get a Memory. + * + * Create a request for the method "memories.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 resource name of the Memory. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -110632,34 +113730,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 resource name of the Memory. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` * @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.GoogleCloudAiplatformV1beta1Memory.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } } @@ -110728,22 +113827,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc + * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The resource name of the Memory. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc + * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } this.name = name; return this; @@ -110755,51 +113861,51 @@ 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`. + * List Memories. * - * Create a request for the method "operations.list". + * Create a request for the method "memories.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 resource name of the ReasoningEngine to list the Memories under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @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 resource name of the ReasoningEngine to list the Memories under. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @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.GoogleCloudAiplatformV1beta1ListMemoriesResponse.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/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); } } @@ -110868,792 +113974,619 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The resource name of the ReasoningEngine to list the Memories under. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The resource name of the ReasoningEngine to list the Memories under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The resource name of the ReasoningEngine to list the Memories under. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + 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/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). Supported fields: * `scope` (as a JSON string + * with equality match only) * `topics` (i.e. `topics.custom_memory_topic_label: + * "example topic" OR topics.managed_memory_topic: USER_PREFERENCES`) + */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). Supported + fields: * `scope` (as a JSON string with equality match only) * `topics` (i.e. + `topics.custom_memory_topic_label: "example topic" OR topics.managed_memory_topic: + USER_PREFERENCES`) */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). Supported fields: * `scope` (as a JSON string + * with equality match only) * `topics` (i.e. `topics.custom_memory_topic_label: + * "example topic" OR topics.managed_memory_topic: USER_PREFERENCES`) + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** + * Optional. The standard list order by string. If not specified, the default order is + * `create_time desc`. If specified, the default sorting order of provided fields is + * ascending. More detail in [AIP-132](https://google.aip.dev/132). Supported fields: * + * `create_time` * `update_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The standard list order by string. If not specified, the default order is `create_time + desc`. If specified, the default sorting order of provided fields is ascending. More detail in + [AIP-132](https://google.aip.dev/132). Supported fields: * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The standard list order by string. If not specified, the default order is + * `create_time desc`. If specified, the default sorting order of provided fields is + * ascending. More detail in [AIP-132](https://google.aip.dev/132). Supported fields: * + * `create_time` * `update_time` + */ + 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; - /** The standard list page size. + /** Optional. The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** Optional. The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** Optional. The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** Optional. 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. + * Update a Memory. * - * Create a request for the method "operations.wait". + * Create a request for the method "memories.patch". * * 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 Patch#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @param name Identifier. Represents the resource name of the Memory. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory} * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory content) throws java.io.IOException { + Patch result = new Patch(name, content); 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 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 The name of the operation resource to wait on. + * @param name Identifier. Represents the resource name of the Memory. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory} * @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 Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to wait on. */ + /** + * Identifier. Represents the resource name of the Memory. Format: `projects/{project}/l + * ocations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to wait on. + /** Identifier. Represents the resource name of the Memory. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** + * Identifier. Represents the resource name of the Memory. Format: `projects/{project}/l + * ocations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } 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. + * Optional. Mask specifying which fields to update. The following fields are immutable: + * * `scope` * `memory_type` */ @com.google.api.client.util.Key - private String timeout; + private String updateMask; - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. + /** Optional. Mask specifying which fields to update. The following fields are immutable: * `scope` * + `memory_type` */ - public String getTimeout() { - return timeout; + public String getUpdateMask() { + return updateMask; } /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. + * Optional. Mask specifying which fields to update. The following fields are immutable: + * * `scope` * `memory_type` */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } - - } - } - /** - * An accessor for creating requests from the Interactions collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Interactions interactions() {
- return new Interactions();
- }
-
- /**
- * The "interactions" collection of methods.
- */
- public class Interactions {
-
- /**
- * Creates an interaction.
- *
- * Create a request for the method "interactions.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 projectsId
- * @param locationsId
- * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest}
- * @return the request
- */
- public Create create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException {
- Create result = new Create(projectsId, locationsId, 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.
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Purge#execute()} method to invoke the remote operation. * - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @since 1.13 + * @param parent Required. The resource name of the ReasoningEngine to purge memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeMemoriesRequest} + * @return the request */ - protected Create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1Interaction.class); - this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); - this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeMemoriesRequest content) throws java.io.IOException { + Purge result = new Purge(parent, content); + initialize(result); + return result; } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + public class Purge extends AiplatformRequest{@link + * Purge#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 ReasoningEngine to purge memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeMemoriesRequest} + * @since 1.13 + */ + protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeMemoriesRequest 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/[^/]+/memoryBanks/[^/]+$"); + } + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Purge set$Xgafv(java.lang.String $Xgafv) { + return (Purge) super.set$Xgafv($Xgafv); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Purge setAccessToken(java.lang.String accessToken) { + return (Purge) super.setAccessToken(accessToken); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Purge setAlt(java.lang.String alt) { + return (Purge) super.setAlt(alt); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Purge setCallback(java.lang.String callback) { + return (Purge) super.setCallback(callback); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Purge setFields(java.lang.String fields) { + return (Purge) super.setFields(fields); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Purge setKey(java.lang.String key) { + return (Purge) super.setKey(key); + } - @com.google.api.client.util.Key - private java.lang.String projectsId; + @Override + public Purge setOauthToken(java.lang.String oauthToken) { + return (Purge) super.setOauthToken(oauthToken); + } - /** + @Override + public Purge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Purge) super.setPrettyPrint(prettyPrint); + } - */ - public java.lang.String getProjectsId() { - return projectsId; - } + @Override + public Purge setQuotaUser(java.lang.String quotaUser) { + return (Purge) super.setQuotaUser(quotaUser); + } - public Create setProjectsId(java.lang.String projectsId) { - this.projectsId = projectsId; - return this; - } + @Override + public Purge setUploadType(java.lang.String uploadType) { + return (Purge) super.setUploadType(uploadType); + } - @com.google.api.client.util.Key - private java.lang.String locationsId; + @Override + public Purge setUploadProtocol(java.lang.String uploadProtocol) { + return (Purge) super.setUploadProtocol(uploadProtocol); + } - /** + /** + * Required. The resource name of the ReasoningEngine to purge memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - */ - public java.lang.String getLocationsId() { - return locationsId; - } + /** Required. The resource name of the ReasoningEngine to purge memories from. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } - public Create setLocationsId(java.lang.String locationsId) { - this.locationsId = locationsId; - return this; - } + /** + * Required. The resource name of the ReasoningEngine to purge memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public Purge 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/[^/]+/memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + @Override + public Purge set(String parameterName, Object value) { + return (Purge) super.set(parameterName, value); + } } - } - /** - * Creates an interaction and streams the response. - * - * Create a request for the method "interactions.createStream". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link CreateStream#execute()} method to invoke the remote operation. - * - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @return the request - */ - public CreateStream createStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { - CreateStream result = new CreateStream(projectsId, locationsId, content); - initialize(result); - return result; - } - - public class CreateStream extends AiplatformRequest{@link - * CreateStream#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 Retrieve#execute()} method to invoke the remote operation. * - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @since 1.13 - */ - protected CreateStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1InteractionStreamingEvent.class); - this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); - this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); - } - - @Override - public CreateStream set$Xgafv(java.lang.String $Xgafv) { - return (CreateStream) super.set$Xgafv($Xgafv); - } - - @Override - public CreateStream setAccessToken(java.lang.String accessToken) { - return (CreateStream) super.setAccessToken(accessToken); - } - - @Override - public CreateStream setAlt(java.lang.String alt) { - return (CreateStream) super.setAlt(alt); - } - - @Override - public CreateStream setCallback(java.lang.String callback) { - return (CreateStream) super.setCallback(callback); - } - - @Override - public CreateStream setFields(java.lang.String fields) { - return (CreateStream) super.setFields(fields); - } - - @Override - public CreateStream setKey(java.lang.String key) { - return (CreateStream) super.setKey(key); - } - - @Override - public CreateStream setOauthToken(java.lang.String oauthToken) { - return (CreateStream) super.setOauthToken(oauthToken); - } - - @Override - public CreateStream setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateStream) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateStream setQuotaUser(java.lang.String quotaUser) { - return (CreateStream) super.setQuotaUser(quotaUser); - } - - @Override - public CreateStream setUploadType(java.lang.String uploadType) { - return (CreateStream) super.setUploadType(uploadType); - } - - @Override - public CreateStream setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateStream) super.setUploadProtocol(uploadProtocol); - } - - @com.google.api.client.util.Key - private java.lang.String projectsId; - - /** - - */ - public java.lang.String getProjectsId() { - return projectsId; - } - - public CreateStream setProjectsId(java.lang.String projectsId) { - this.projectsId = projectsId; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String locationsId; - - /** - + * @param parent Required. The resource name of the ReasoningEngine to retrieve memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest} + * @return the request */ - public java.lang.String getLocationsId() { - return locationsId; - } - - public CreateStream setLocationsId(java.lang.String locationsId) { - this.locationsId = locationsId; - return this; - } - - @Override - public CreateStream set(String parameterName, Object value) { - return (CreateStream) super.set(parameterName, value); + public Retrieve retrieve(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest content) throws java.io.IOException { + Retrieve result = new Retrieve(parent, content); + initialize(result); + return result; } - } - /** - * Deletes an interaction. - * - * Create a request for the method "interactions.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 interaction to delete. Format: interactions/{interaction} - * @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 interaction to delete. Format: interactions/{interaction} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1DeleteInteractionResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); + /** + * Retrieve memories. + * + * Create a request for the method "memories.retrieve". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Retrieve#execute()} method to invoke the remote operation. + *{@link + * Retrieve#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 ReasoningEngine to retrieve memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest} + * @since 1.13 + */ + protected Retrieve(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse.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/[^/]+/memoryBanks/[^/]+$"); + } } - } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Retrieve set$Xgafv(java.lang.String $Xgafv) { + return (Retrieve) super.set$Xgafv($Xgafv); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Retrieve setAccessToken(java.lang.String accessToken) { + return (Retrieve) super.setAccessToken(accessToken); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Retrieve setAlt(java.lang.String alt) { + return (Retrieve) super.setAlt(alt); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Retrieve setCallback(java.lang.String callback) { + return (Retrieve) super.setCallback(callback); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Retrieve setFields(java.lang.String fields) { + return (Retrieve) super.setFields(fields); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Retrieve setKey(java.lang.String key) { + return (Retrieve) super.setKey(key); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Retrieve setOauthToken(java.lang.String oauthToken) { + return (Retrieve) super.setOauthToken(oauthToken); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Retrieve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retrieve) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Retrieve setQuotaUser(java.lang.String quotaUser) { + return (Retrieve) super.setQuotaUser(quotaUser); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Retrieve setUploadType(java.lang.String uploadType) { + return (Retrieve) super.setUploadType(uploadType); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Retrieve setUploadProtocol(java.lang.String uploadProtocol) { + return (Retrieve) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. The resource name of the ReasoningEngine to retrieve memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - public java.lang.String getName() { - return name; - } + /** Required. The resource name of the ReasoningEngine to retrieve memories from. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } - /** - * Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - 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/[^/]+/interactions/[^/]+$"); + /** + * Required. The resource name of the ReasoningEngine to retrieve memories from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public Retrieve 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/[^/]+/memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + @Override + public Retrieve set(String parameterName, Object value) { + return (Retrieve) super.set(parameterName, value); + } } - } - - } - /** - * An accessor for creating requests from the MemoryBanks collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.MemoryBanks.List request = aiplatform.memoryBanks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public MemoryBanks memoryBanks() {
- return new MemoryBanks();
- }
-
- /**
- * The "memoryBanks" collection of methods.
- */
- public class MemoryBanks {
-
- /**
- * An accessor for creating requests from the Memories collection.
- *
- * The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Memories.List request = aiplatform.memories().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Memories memories() {
- return new Memories();
- }
-
- /**
- * The "memories" collection of methods.
- */
- public class Memories {
-
/**
- * Get a Memory.
+ * Rollback Memory to a specific revision.
*
- * Create a request for the method "memories.get".
+ * Create a request for the method "memories.rollback".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Rollback#execute()} method to invoke the remote operation.
*
- * @param name Required. The resource name of the Memory. Format:
+ * @param name Required. The resource name of the Memory to rollback. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem
* ory}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RollbackMemoryRequest}
* @return the request
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
+ public Rollback rollback(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RollbackMemoryRequest content) throws java.io.IOException {
+ Rollback result = new Rollback(name, content);
initialize(result);
return result;
}
- public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Rollback#execute()} method to invoke the remote operation. + *
{@link + * Rollback#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 Memory. Format: + * @param name Required. The resource name of the Memory to rollback. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem * ory}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RollbackMemoryRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Memory.class); + protected Rollback(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RollbackMemoryRequest 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(), @@ -111663,78 +114596,68 @@ protected Get(java.lang.String 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(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Rollback set$Xgafv(java.lang.String $Xgafv) { + return (Rollback) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Rollback setAccessToken(java.lang.String accessToken) { + return (Rollback) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Rollback setAlt(java.lang.String alt) { + return (Rollback) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Rollback setCallback(java.lang.String callback) { + return (Rollback) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Rollback setFields(java.lang.String fields) { + return (Rollback) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Rollback setKey(java.lang.String key) { + return (Rollback) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Rollback setOauthToken(java.lang.String oauthToken) { + return (Rollback) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Rollback setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Rollback) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Rollback setQuotaUser(java.lang.String quotaUser) { + return (Rollback) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Rollback setUploadType(java.lang.String uploadType) { + return (Rollback) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Rollback setUploadProtocol(java.lang.String uploadProtocol) { + return (Rollback) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc - * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * Required. The resource name of the Memory to rollback. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Memory. Format: + /** Required. The resource name of the Memory to rollback. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ public java.lang.String getName() { @@ -111742,10 +114665,10 @@ public java.lang.String getName() { } /** - * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc - * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * Required. The resource name of the Memory to rollback. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ - public Get setName(java.lang.String name) { + public Rollback setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -111756,8 +114679,8 @@ public Get setName(java.lang.String name) { } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Rollback set(String parameterName, Object value) { + return (Rollback) super.set(parameterName, value); } } @@ -112586,6 +115509,385 @@ 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 {
+
+ /**
+ * Get a Memory 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 resource name of the Memory Revision to retrieve. Format: `projects/{project}/location
+ * s/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{revision}`
+ * @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 Memory Revision to retrieve. Format: `projects/{project}/location + * s/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{revision}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MemoryRevision.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/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 resource name of the Memory Revision to retrieve. Format: `projects/{ + * project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory} + * /revisions/{revision}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Memory Revision to retrieve. Format: `projects/{project}/locatio + ns/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{revision}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Memory Revision to retrieve. Format: `projects/{ + * project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory} + * /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/[^/]+/memoryBanks/[^/]+/memories/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List Memory Revisions for a Memory. + * + * 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 Memory to list revisions for. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @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 Memory to list revisions for. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse.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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + } + + @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 Memory to list revisions for. Format: `projects/ + * {project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory + * }` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Memory to list revisions for. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Memory to list revisions for. Format: `projects/ + * {project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory + * }` + */ + 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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). Supported fields (equality match only): * + * `labels` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). Supported + fields (equality match only): * `labels` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). Supported fields (equality match only): * + * `labels` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } /** * An accessor for creating requests from the Operations collection. @@ -134277,36 +137579,33 @@ public List setParent(java.lang.String parent) { } /** - * Optional. Optional AIP-160 filter, currently restricted to a single equality predicate - * on `state`: state = ACTIVE state = DISABLED state = ENABLING The value must be the - * exact name of a `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, - * `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals - * for additional future states like NEEDS_ACTION; this allow-list grows when the proto - * adds them.) A blank or absent filter returns every MonitoredAgent in the parent - * regardless of state. Anything else returns INVALID_ARGUMENT. + * Optional. An AIP-160 filter, currently restricted to a single equality predicate on + * `state`. The value must be the exact, case-sensitive name of a + * `MonitoredAgent.EnablementState` value: `ACTIVE`, `DISABLED`, `ENABLING`, or + * `ENABLEMENT_STATE_UNSPECIFIED`. A blank or absent filter returns every MonitoredAgent + * in the parent regardless of state; any other value returns `INVALID_ARGUMENT`. Example: + * ``` state = ACTIVE ``` */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. Optional AIP-160 filter, currently restricted to a single equality predicate on `state`: - state = ACTIVE state = DISABLED state = ENABLING The value must be the exact name of a - `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, `DISABLED`, `ENABLING`, or - `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals for additional future states like - NEEDS_ACTION; this allow-list grows when the proto adds them.) A blank or absent filter returns - every MonitoredAgent in the parent regardless of state. Anything else returns INVALID_ARGUMENT. + /** Optional. An AIP-160 filter, currently restricted to a single equality predicate on `state`. The + value must be the exact, case-sensitive name of a `MonitoredAgent.EnablementState` value: `ACTIVE`, + `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. A blank or absent filter returns every + MonitoredAgent in the parent regardless of state; any other value returns `INVALID_ARGUMENT`. + Example: ``` state = ACTIVE ``` */ public java.lang.String getFilter() { return filter; } /** - * Optional. Optional AIP-160 filter, currently restricted to a single equality predicate - * on `state`: state = ACTIVE state = DISABLED state = ENABLING The value must be the - * exact name of a `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, - * `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals - * for additional future states like NEEDS_ACTION; this allow-list grows when the proto - * adds them.) A blank or absent filter returns every MonitoredAgent in the parent - * regardless of state. Anything else returns INVALID_ARGUMENT. + * Optional. An AIP-160 filter, currently restricted to a single equality predicate on + * `state`. The value must be the exact, case-sensitive name of a + * `MonitoredAgent.EnablementState` value: `ACTIVE`, `DISABLED`, `ENABLING`, or + * `ENABLEMENT_STATE_UNSPECIFIED`. A blank or absent filter returns every MonitoredAgent + * in the parent regardless of state; any other value returns `INVALID_ARGUMENT`. Example: + * ``` state = ACTIVE ``` */ public List setFilter(java.lang.String filter) { this.filter = filter; @@ -134532,24 +137831,20 @@ public Aggregate setParent(java.lang.String parent) { /** * Optional. Filter expression restricting which AnalyzedSessions are included in the - * aggregation. Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a - * closed `detection_time` window with both bounds required, e.g. detection_time >= - * "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" The `severity` - * clause supported on ListAnalyzedSessions is intentionally rejected here: this - * response groups by severity (one entry per bucket per agent), so a severity filter - * would collapse the rollup to a single bucket and produce a misleading per-agent view. - * If empty, the aggregation covers the last 3 days. + * aggregation. Supports a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a + * closed `detection_time` window with both bounds required. The `severity` clause is + * not supported here. If empty, the aggregation covers the last 3 days. Example: ``` + * detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" + * ``` */ @com.google.api.client.util.Key private java.lang.String filter; /** Optional. Filter expression restricting which AnalyzedSessions are included in the aggregation. - Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a closed `detection_time` window - with both bounds required, e.g. detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= - "2024-01-08T00:00:00Z" The `severity` clause supported on ListAnalyzedSessions is intentionally - rejected here: this response groups by severity (one entry per bucket per agent), so a severity - filter would collapse the rollup to a single bucket and produce a misleading per-agent view. If - empty, the aggregation covers the last 3 days. + Supports a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a closed `detection_time` + window with both bounds required. The `severity` clause is not supported here. If empty, the + aggregation covers the last 3 days. Example: ``` detection_time >= "2024-01-01T00:00:00Z" AND + detection_time <= "2024-01-08T00:00:00Z" ``` */ public java.lang.String getFilter() { return filter; @@ -134557,13 +137852,11 @@ public java.lang.String getFilter() { /** * Optional. Filter expression restricting which AnalyzedSessions are included in the - * aggregation. Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a - * closed `detection_time` window with both bounds required, e.g. detection_time >= - * "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" The `severity` - * clause supported on ListAnalyzedSessions is intentionally rejected here: this - * response groups by severity (one entry per bucket per agent), so a severity filter - * would collapse the rollup to a single bucket and produce a misleading per-agent view. - * If empty, the aggregation covers the last 3 days. + * aggregation. Supports a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a + * closed `detection_time` window with both bounds required. The `severity` clause is + * not supported here. If empty, the aggregation covers the last 3 days. Example: ``` + * detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" + * ``` */ public Aggregate setFilter(java.lang.String filter) { this.filter = filter; @@ -134922,56 +138215,51 @@ public List setParent(java.lang.String parent) { } /** - * Optional. Filter expression restricting which AnalyzedSessions are returned. A subset - * of AIP-160 supporting two clauses joined by AND: 1. A closed time window on - * `detection_time`. If included, both bounds are required: detection_time >= "" AND - * detection_time <= "" 2. An equality on `severity`, where the value is the string - * representation of a Severity enum value (e.g., "CRITICAL", "HIGH", "MEDIUM", "LOW"). - * "SEVERITY_UNSPECIFIED" is not supported. The filter matches sessions whose maximum - * severity equals the requested bucket (a session whose detectors fire at LOW and - * CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = - * "CRITICAL" Both clauses are independently optional and may appear in either order. - * Each clause may appear at most once. Example (time window + severity): detection_time - * >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" AND severity = - * "CRITICAL" If empty, results are restricted to the last 3 days with no severity - * restriction. Other fields, additional operators, set membership (IN), and boolean - * combinations (OR, NOT, parentheses) are not yet supported. + * Optional. Filter expression restricting which AnalyzedSessions are returned. Supports + * a subset of AIP-160: a closed `detection_time` window (both bounds required) and/or + * an equality on `severity`, joined by `AND`. Each clause is optional, may appear at + * most once, and may appear in either order. The `severity` value is the string form of + * a `Severity` value (`CRITICAL`, `HIGH`, `MEDIUM`, or `LOW`; `SEVERITY_UNSPECIFIED` is + * not supported) and matches sessions whose maximum severity equals that bucket. For + * example, a session that fires at both LOW and CRITICAL matches `severity = + * "CRITICAL"`, not `severity = "LOW"`. Example (time window and severity): ``` + * detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" + * AND severity = "CRITICAL" ``` If empty, results are restricted to the last 3 days + * with no severity restriction. Other fields, additional operators, set membership + * (`IN`), and boolean combinations (`OR`, `NOT`, parentheses) are not yet supported. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. Filter expression restricting which AnalyzedSessions are returned. A subset of AIP-160 - supporting two clauses joined by AND: 1. A closed time window on `detection_time`. If included, - both bounds are required: detection_time >= "" AND detection_time <= "" 2. An equality on - `severity`, where the value is the string representation of a Severity enum value (e.g., - "CRITICAL", "HIGH", "MEDIUM", "LOW"). "SEVERITY_UNSPECIFIED" is not supported. The filter matches - sessions whose maximum severity equals the requested bucket (a session whose detectors fire at LOW - and CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = "CRITICAL" - Both clauses are independently optional and may appear in either order. Each clause may appear at - most once. Example (time window + severity): detection_time >= "2024-01-01T00:00:00Z" AND - detection_time <= "2024-01-08T00:00:00Z" AND severity = "CRITICAL" If empty, results are restricted - to the last 3 days with no severity restriction. Other fields, additional operators, set membership - (IN), and boolean combinations (OR, NOT, parentheses) are not yet supported. + /** Optional. Filter expression restricting which AnalyzedSessions are returned. Supports a subset of + AIP-160: a closed `detection_time` window (both bounds required) and/or an equality on `severity`, + joined by `AND`. Each clause is optional, may appear at most once, and may appear in either order. + The `severity` value is the string form of a `Severity` value (`CRITICAL`, `HIGH`, `MEDIUM`, or + `LOW`; `SEVERITY_UNSPECIFIED` is not supported) and matches sessions whose maximum severity equals + that bucket. For example, a session that fires at both LOW and CRITICAL matches `severity = + "CRITICAL"`, not `severity = "LOW"`. Example (time window and severity): ``` detection_time >= + "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" AND severity = "CRITICAL" ``` + If empty, results are restricted to the last 3 days with no severity restriction. Other fields, + additional operators, set membership (`IN`), and boolean combinations (`OR`, `NOT`, parentheses) + are not yet supported. */ public java.lang.String getFilter() { return filter; } /** - * Optional. Filter expression restricting which AnalyzedSessions are returned. A subset - * of AIP-160 supporting two clauses joined by AND: 1. A closed time window on - * `detection_time`. If included, both bounds are required: detection_time >= "" AND - * detection_time <= "" 2. An equality on `severity`, where the value is the string - * representation of a Severity enum value (e.g., "CRITICAL", "HIGH", "MEDIUM", "LOW"). - * "SEVERITY_UNSPECIFIED" is not supported. The filter matches sessions whose maximum - * severity equals the requested bucket (a session whose detectors fire at LOW and - * CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = - * "CRITICAL" Both clauses are independently optional and may appear in either order. - * Each clause may appear at most once. Example (time window + severity): detection_time - * >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" AND severity = - * "CRITICAL" If empty, results are restricted to the last 3 days with no severity - * restriction. Other fields, additional operators, set membership (IN), and boolean - * combinations (OR, NOT, parentheses) are not yet supported. + * Optional. Filter expression restricting which AnalyzedSessions are returned. Supports + * a subset of AIP-160: a closed `detection_time` window (both bounds required) and/or + * an equality on `severity`, joined by `AND`. Each clause is optional, may appear at + * most once, and may appear in either order. The `severity` value is the string form of + * a `Severity` value (`CRITICAL`, `HIGH`, `MEDIUM`, or `LOW`; `SEVERITY_UNSPECIFIED` is + * not supported) and matches sessions whose maximum severity equals that bucket. For + * example, a session that fires at both LOW and CRITICAL matches `severity = + * "CRITICAL"`, not `severity = "LOW"`. Example (time window and severity): ``` + * detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" + * AND severity = "CRITICAL" ``` If empty, results are restricted to the last 3 days + * with no severity restriction. Other fields, additional operators, set membership + * (`IN`), and boolean combinations (`OR`, `NOT`, parentheses) are not yet supported. */ public List setFilter(java.lang.String filter) { this.filter = filter; @@ -134981,21 +138269,13 @@ public List setFilter(java.lang.String filter) { /** * Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The * default sort direction is ascending; append " desc" to a field to sort descending. - * Subfields are not supported (no field listed below has any). Supported fields (any - * other field yields INVALID_ARGUMENT): * `latest_detection_time` - the session's most- - * recent flagged detection time. This is the column the landing page's "Detection time" - * header sorts on. Sorted by the underlying TIMESTAMP value (newer is "greater" so - * `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - - * the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < - * CRITICAL=4 (matches `Severity` enum ordering). `max_severity_rank desc` puts the - * most-severe sessions first. The ranking is documented here per AIP-132 because the - * field is not a natural-comparator type. * `agent_display_name` - the MonitoredAgent's - * display name as shown in the UI's "Agent name" column. Sorted as a STRING using - * BigQuery default collation (case-sensitive, code-point order). The server always - * appends `session_id ASC` as a stable tiebreak so pagination remains consistent across - * pages when the primary sort field has duplicates (e.g. multiple sessions with the - * same latest_detection_time within a second). If empty, defaults to - * `latest_detection_time desc` (the prior implicit behavior). Multi-field sort (e.g. + * Supported fields (any other field yields INVALID_ARGUMENT): * `latest_detection_time` + * - the session's most-recent flagged detection time. `latest_detection_time desc` puts + * the newest sessions first. * `max_severity_rank` - the session's bucketed maximum + * severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4. `max_severity_rank desc` + * puts the most-severe sessions first. * `agent_display_name` - the MonitoredAgent's + * display name. Sorted as a STRING (case-sensitive, code-point order). If empty, + * defaults to `latest_detection_time desc`. Multi-field sort (for example, * `max_severity_rank desc, latest_detection_time desc`) is supported. The `order_by` * value MUST match the value used on the call that minted any supplied `page_token` * (AIP-158). Mismatches yield INVALID_ARGUMENT. @@ -135004,22 +138284,15 @@ public List setFilter(java.lang.String filter) { private java.lang.String orderBy; /** Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The default sort - direction is ascending; append " desc" to a field to sort descending. Subfields are not supported - (no field listed below has any). Supported fields (any other field yields INVALID_ARGUMENT): * - `latest_detection_time` - the session's most-recent flagged detection time. This is the column the - landing page's "Detection time" header sorts on. Sorted by the underlying TIMESTAMP value (newer is - "greater" so `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - - the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4 (matches - `Severity` enum ordering). `max_severity_rank desc` puts the most-severe sessions first. The - ranking is documented here per AIP-132 because the field is not a natural-comparator type. * - `agent_display_name` - the MonitoredAgent's display name as shown in the UI's "Agent name" column. - Sorted as a STRING using BigQuery default collation (case-sensitive, code-point order). The server - always appends `session_id ASC` as a stable tiebreak so pagination remains consistent across pages - when the primary sort field has duplicates (e.g. multiple sessions with the same - latest_detection_time within a second). If empty, defaults to `latest_detection_time desc` (the - prior implicit behavior). Multi-field sort (e.g. `max_severity_rank desc, latest_detection_time - desc`) is supported. The `order_by` value MUST match the value used on the call that minted any - supplied `page_token` (AIP-158). Mismatches yield INVALID_ARGUMENT. + direction is ascending; append " desc" to a field to sort descending. Supported fields (any other + field yields INVALID_ARGUMENT): * `latest_detection_time` - the session's most-recent flagged + detection time. `latest_detection_time desc` puts the newest sessions first. * `max_severity_rank` + - the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4. + `max_severity_rank desc` puts the most-severe sessions first. * `agent_display_name` - the + MonitoredAgent's display name. Sorted as a STRING (case-sensitive, code-point order). If empty, + defaults to `latest_detection_time desc`. Multi-field sort (for example, `max_severity_rank desc, + latest_detection_time desc`) is supported. The `order_by` value MUST match the value used on the + call that minted any supplied `page_token` (AIP-158). Mismatches yield INVALID_ARGUMENT. */ public java.lang.String getOrderBy() { return orderBy; @@ -135028,21 +138301,13 @@ public java.lang.String getOrderBy() { /** * Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The * default sort direction is ascending; append " desc" to a field to sort descending. - * Subfields are not supported (no field listed below has any). Supported fields (any - * other field yields INVALID_ARGUMENT): * `latest_detection_time` - the session's most- - * recent flagged detection time. This is the column the landing page's "Detection time" - * header sorts on. Sorted by the underlying TIMESTAMP value (newer is "greater" so - * `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - - * the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < - * CRITICAL=4 (matches `Severity` enum ordering). `max_severity_rank desc` puts the - * most-severe sessions first. The ranking is documented here per AIP-132 because the - * field is not a natural-comparator type. * `agent_display_name` - the MonitoredAgent's - * display name as shown in the UI's "Agent name" column. Sorted as a STRING using - * BigQuery default collation (case-sensitive, code-point order). The server always - * appends `session_id ASC` as a stable tiebreak so pagination remains consistent across - * pages when the primary sort field has duplicates (e.g. multiple sessions with the - * same latest_detection_time within a second). If empty, defaults to - * `latest_detection_time desc` (the prior implicit behavior). Multi-field sort (e.g. + * Supported fields (any other field yields INVALID_ARGUMENT): * `latest_detection_time` + * - the session's most-recent flagged detection time. `latest_detection_time desc` puts + * the newest sessions first. * `max_severity_rank` - the session's bucketed maximum + * severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4. `max_severity_rank desc` + * puts the most-severe sessions first. * `agent_display_name` - the MonitoredAgent's + * display name. Sorted as a STRING (case-sensitive, code-point order). If empty, + * defaults to `latest_detection_time desc`. Multi-field sort (for example, * `max_severity_rank desc, latest_detection_time desc`) is supported. The `order_by` * value MUST match the value used on the call that minted any supplied `page_token` * (AIP-158). Mismatches yield INVALID_ARGUMENT. @@ -166078,6 +169343,1170 @@ public FeedbackEntries feedbackEntries() { */ public class FeedbackEntries { + /** + * Creates a new FeedbackEntry. + * + * Create a request for the method "feedbackEntries.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 ReasoningEngine in which to create the FeedbackEntry. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry 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 ReasoningEngine in which to create the FeedbackEntry. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry 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/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @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 ReasoningEngine in which to create the + * FeedbackEntry. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the ReasoningEngine in which to create the FeedbackEntry. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the ReasoningEngine in which to create the + * FeedbackEntry. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + 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/[^/]+/reasoningEngines/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a FeedbackEntry and its associated FeedbackContext. + * + * Create a request for the method "feedbackEntries.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 FeedbackEntry to delete. Format: `projects/{project}/locations/{l + * ocation}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @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 FeedbackEntry to delete. Format: `projects/{project}/locations/{l + * ocation}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + } + + @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 FeedbackEntry to delete. Format: `projects/{projec + * t}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback + * _entry}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the FeedbackEntry to delete. Format: `projects/{project}/locations/{ + location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the FeedbackEntry to delete. Format: `projects/{projec + * t}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback + * _entry}` + */ + 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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves a single FeedbackEntry by its resource name. + * + * Create a request for the method "feedbackEntries.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 FeedbackEntry to retrieve. Format: `projects/{project}/locations/ + * {location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @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 FeedbackEntry to retrieve. Format: `projects/{project}/locations/ + * {location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + } + + @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 FeedbackEntry to retrieve. Format: `projects/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedba + * ck_entry}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the FeedbackEntry to retrieve. Format: `projects/{project}/locations + /{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the FeedbackEntry to retrieve. Format: `projects/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedba + * ck_entry}` + */ + 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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the FeedbackContext associated with a FeedbackEntry. + * + * Create a request for the method "feedbackEntries.getFeedbackContext". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetFeedbackContext#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the FeedbackContext to retrieve. Format: `projects/{project}/location + * s/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedback + * Context` + * @return the request + */ + public GetFeedbackContext getFeedbackContext(java.lang.String name) throws java.io.IOException { + GetFeedbackContext result = new GetFeedbackContext(name); + initialize(result); + return result; + } + + public class GetFeedbackContext extends AiplatformRequest{@link GetFeedbackContext#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Required. The resource name of the FeedbackContext to retrieve. Format: `projects/{project}/location + * s/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedback + * Context` + * @since 1.13 + */ + protected GetFeedbackContext(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackContext.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+/feedbackContext$"); + } + } + + @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 GetFeedbackContext set$Xgafv(java.lang.String $Xgafv) { + return (GetFeedbackContext) super.set$Xgafv($Xgafv); + } + + @Override + public GetFeedbackContext setAccessToken(java.lang.String accessToken) { + return (GetFeedbackContext) super.setAccessToken(accessToken); + } + + @Override + public GetFeedbackContext setAlt(java.lang.String alt) { + return (GetFeedbackContext) super.setAlt(alt); + } + + @Override + public GetFeedbackContext setCallback(java.lang.String callback) { + return (GetFeedbackContext) super.setCallback(callback); + } + + @Override + public GetFeedbackContext setFields(java.lang.String fields) { + return (GetFeedbackContext) super.setFields(fields); + } + + @Override + public GetFeedbackContext setKey(java.lang.String key) { + return (GetFeedbackContext) super.setKey(key); + } + + @Override + public GetFeedbackContext setOauthToken(java.lang.String oauthToken) { + return (GetFeedbackContext) super.setOauthToken(oauthToken); + } + + @Override + public GetFeedbackContext setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetFeedbackContext) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetFeedbackContext setQuotaUser(java.lang.String quotaUser) { + return (GetFeedbackContext) super.setQuotaUser(quotaUser); + } + + @Override + public GetFeedbackContext setUploadType(java.lang.String uploadType) { + return (GetFeedbackContext) super.setUploadType(uploadType); + } + + @Override + public GetFeedbackContext setUploadProtocol(java.lang.String uploadProtocol) { + return (GetFeedbackContext) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the FeedbackContext to retrieve. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feed + * back_entry}/feedbackContext` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the FeedbackContext to retrieve. Format: `projects/{project}/locatio + ns/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the FeedbackContext to retrieve. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feed + * back_entry}/feedbackContext` + */ + public GetFeedbackContext setName(java.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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+/feedbackContext$"); + } + this.name = name; + return this; + } + + @Override + public GetFeedbackContext set(String parameterName, Object value) { + return (GetFeedbackContext) super.set(parameterName, value); + } + } + /** + * Lists FeedbackEntries in a ReasoningEngine. + * + * Create a request for the method "feedbackEntries.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 ReasoningEngine from which to list FeedbackEntries. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @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 ReasoningEngine from which to list FeedbackEntries. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse.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/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @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 ReasoningEngine from which to list + * FeedbackEntries. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the ReasoningEngine from which to list FeedbackEntries. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the ReasoningEngine from which to list + * FeedbackEntries. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + 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/[^/]+/reasoningEngines/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Standard list filter. Supported fields: * `session_id` * `user_id` * + * `feedback_type` * `feedback_labels`: Supports the HAS operator (`:`). For example: + * `feedback_labels:"inaccurate"`. * `create_time` * `update_time` Example: + * `feedback_type="THUMBS_DOWN" AND feedback_labels:"hallucination"`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Standard list filter. Supported fields: * `session_id` * `user_id` * `feedback_type` * + `feedback_labels`: Supports the HAS operator (`:`). For example: `feedback_labels:"inaccurate"`. * + `create_time` * `update_time` Example: `feedback_type="THUMBS_DOWN" AND + feedback_labels:"hallucination"`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Standard list filter. Supported fields: * `session_id` * `user_id` * + * `feedback_type` * `feedback_labels`: Supports the HAS operator (`:`). For example: + * `feedback_labels:"inaccurate"`. * `create_time` * `update_time` Example: + * `feedback_type="THUMBS_DOWN" AND feedback_labels:"hallucination"`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. A comma-separated list of fields to order results by, sorted in ascending + * order by default. Append ` desc` after a field name to sort that field in descending + * order. Supported fields: * `create_time` * `update_time` Example: `create_time desc`. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. A comma-separated list of fields to order results by, sorted in ascending order by + default. Append ` desc` after a field name to sort that field in descending order. Supported + fields: * `create_time` * `update_time` Example: `create_time desc`. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. A comma-separated list of fields to order results by, sorted in ascending + * order by default. Append ` desc` after a field name to sort that field in descending + * order. Supported fields: * `create_time` * `update_time` Example: `create_time desc`. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The maximum number of FeedbackEntries to return per page. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of FeedbackEntries to return per page. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of FeedbackEntries to return per page. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token, received from a previous ListFeedbackEntries call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous ListFeedbackEntries call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token, received from a previous ListFeedbackEntries call. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing FeedbackEntry. Only the fields specified in update_mask are modified. If the + * mask is empty, all mutable fields are replaced with the values supplied in the request. + * + * Create a request for the method "feedbackEntries.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry 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 Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackEntry 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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{fee + * dback_entry}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locati + ons/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{fee + * dback_entry}` + */ + 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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The field mask that controls which fields are updated. If unset or empty, + * all mutable fields of the FeedbackEntry are replaced with the values from + * feedback_entry. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The field mask that controls which fields are updated. If unset or empty, all mutable + fields of the FeedbackEntry are replaced with the values from feedback_entry. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The field mask that controls which fields are updated. If unset or empty, + * all mutable fields of the FeedbackEntry are replaced with the values from + * feedback_entry. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Updates the FeedbackContext associated with a FeedbackEntry. Only the fields specified in + * update_mask are modified. If the mask is empty, all mutable fields are replaced with the values + * supplied in the request. + * + * Create a request for the method "feedbackEntries.updateFeedbackContext". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UpdateFeedbackContext#execute()} method to invoke the remote + * operation. + * + * @param name Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbac + * kContext` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackContext} + * @return the request + */ + public UpdateFeedbackContext updateFeedbackContext(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackContext content) throws java.io.IOException { + UpdateFeedbackContext result = new UpdateFeedbackContext(name, content); + initialize(result); + return result; + } + + public class UpdateFeedbackContext extends AiplatformRequest{@link UpdateFeedbackContext#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param name Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbac + * kContext` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackContext} + * @since 1.13 + */ + protected UpdateFeedbackContext(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeedbackContext 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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+/feedbackContext$"); + } + } + + @Override + public UpdateFeedbackContext set$Xgafv(java.lang.String $Xgafv) { + return (UpdateFeedbackContext) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateFeedbackContext setAccessToken(java.lang.String accessToken) { + return (UpdateFeedbackContext) super.setAccessToken(accessToken); + } + + @Override + public UpdateFeedbackContext setAlt(java.lang.String alt) { + return (UpdateFeedbackContext) super.setAlt(alt); + } + + @Override + public UpdateFeedbackContext setCallback(java.lang.String callback) { + return (UpdateFeedbackContext) super.setCallback(callback); + } + + @Override + public UpdateFeedbackContext setFields(java.lang.String fields) { + return (UpdateFeedbackContext) super.setFields(fields); + } + + @Override + public UpdateFeedbackContext setKey(java.lang.String key) { + return (UpdateFeedbackContext) super.setKey(key); + } + + @Override + public UpdateFeedbackContext setOauthToken(java.lang.String oauthToken) { + return (UpdateFeedbackContext) super.setOauthToken(oauthToken); + } + + @Override + public UpdateFeedbackContext setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateFeedbackContext) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateFeedbackContext setQuotaUser(java.lang.String quotaUser) { + return (UpdateFeedbackContext) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateFeedbackContext setUploadType(java.lang.String uploadType) { + return (UpdateFeedbackContext) super.setUploadType(uploadType); + } + + @Override + public UpdateFeedbackContext setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateFeedbackContext) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{fee + * dback_entry}/feedbackContext` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/locati + ons/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbackContext + ` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{p + * roject}/locations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{fee + * dback_entry}/feedbackContext` + */ + public UpdateFeedbackContext setName(java.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/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+/feedbackContext$"); + } + this.name = name; + return this; + } + + /** + * Optional. The field mask that controls which fields are updated. If unset or empty, + * all mutable fields of the FeedbackContext are replaced with the values from + * feedback_context. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The field mask that controls which fields are updated. If unset or empty, all mutable + fields of the FeedbackContext are replaced with the values from feedback_context. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The field mask that controls which fields are updated. If unset or empty, + * all mutable fields of the FeedbackContext are replaced with the values from + * feedback_context. + */ + public UpdateFeedbackContext setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public UpdateFeedbackContext set(String parameterName, Object value) { + return (UpdateFeedbackContext) super.set(parameterName, value); + } + } + /** * An accessor for creating requests from the Operations collection. * diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java index 34f8847f64f..3952fcaa0d8 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java @@ -37,6 +37,13 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperiments extends com. @com.google.api.client.util.Key private java.lang.Boolean anchorLastFrame; + /** + * CFG scale for video-transform, perf-generation, a2v, video-textures models. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float cfgScale; + /** * Optional. Video codec to use for output. * The value may be {@code null}. @@ -166,6 +173,23 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setAnchorLastFrame(java. return this; } + /** + * CFG scale for video-transform, perf-generation, a2v, video-textures models. + * @return value or {@code null} for none + */ + public java.lang.Float getCfgScale() { + return cfgScale; + } + + /** + * CFG scale for video-transform, perf-generation, a2v, video-textures models. + * @param cfgScale cfgScale or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setCfgScale(java.lang.Float cfgScale) { + this.cfgScale = cfgScale; + return this; + } + /** * Optional. Video codec to use for output. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java index add5def051a..a21de88e63d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class GenaiVertexV1beta1EnvironmentConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + /** * Allow only specific domains. * The value may be {@code null}. @@ -49,6 +57,25 @@ public final class GenaiVertexV1beta1EnvironmentConfig extends com.google.api.cl @com.google.api.client.util.Key private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1LocalEnvironmentConfig extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1beta1LocalEnvironmentConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1LocalEnvironmentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1LocalEnvironmentConfig clone() { + return (GenaiVertexV1beta1LocalEnvironmentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java index b3f6b076193..2240685e9f0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Resource representing an Agent Anomaly Detection Scope. + * Represents an Agent Anomaly Detection Scope. * * 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:
@@ -30,14 +30,14 @@
public final class GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope extends com.google.api.client.json.GenericJson {
/**
- * Optional. User provided display name of the AgentAnomalyDetectionScope.
+ * Optional. User-provided display name of the AgentAnomalyDetectionScope.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;
/**
- * Required. Customer owned Cloud Logging bucket resource names attached to this scope. Format:
+ * Required. Customer-owned Cloud Logging bucket resource names attached to this scope. Format:
* `projects/{project}/locations/{location}/buckets/{bucket}`.
* The value may be {@code null}.
*/
@@ -53,7 +53,7 @@ public final class GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope extend
private java.lang.String name;
/**
- * Required. Customer owned Cloud Observability bucket resource names attached to this scope.
+ * Required. Customer-owned Cloud Observability bucket resource names attached to this scope.
* Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}`.
* The value may be {@code null}.
*/
@@ -61,14 +61,14 @@ public final class GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope extend
private java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java
index cdaed137dc1..1ebf2f43d86 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java
@@ -17,7 +17,7 @@
package com.google.api.services.aiplatform.v1beta1.model;
/**
- * Aggregated statistics for one MonitoredAgent.
+ * Contains aggregated statistics for one MonitoredAgent.
*
* 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:
@@ -30,8 +30,7 @@
public final class GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate extends com.google.api.client.json.GenericJson {
/**
- * Output only. The human-readable display name of the MonitoredAgent, denormalized from
- * `monitored_agents.display_name`.
+ * Output only. The human-readable display name of the MonitoredAgent.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -46,8 +45,8 @@ public final class GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse
private java.lang.String agentResourceName;
/**
- * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING,
- * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`.
+ * Output only. The enablement state of the MonitoredAgent (for example, ACTIVE, DISABLED, or
+ * ENABLING).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -68,9 +67,8 @@ public final class GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse
private String latestSessionTime;
/**
- * Output only. The GCP location (region) of the agent (e.g. `us-central1`). Denormalized from
- * `monitored_agents.location`; empty when the agent is not enrolled or its location column is
- * empty.
+ * Output only. The Google Cloud location (region) of the agent (for example, `us-central1`).
+ * Empty when the agent is not enrolled or its location is unknown.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -102,8 +100,7 @@ public final class GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse
private java.lang.Integer totalSessionsCount;
/**
- * Output only. The human-readable display name of the MonitoredAgent, denormalized from
- * `monitored_agents.display_name`.
+ * Output only. The human-readable display name of the MonitoredAgent.
* @return value or {@code null} for none
*/
public java.lang.String getAgentDisplayName() {
@@ -111,8 +108,7 @@ public java.lang.String getAgentDisplayName() {
}
/**
- * Output only. The human-readable display name of the MonitoredAgent, denormalized from
- * `monitored_agents.display_name`.
+ * Output only. The human-readable display name of the MonitoredAgent.
* @param agentDisplayName agentDisplayName or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAgentDisplayName(java.lang.String agentDisplayName) {
@@ -140,8 +136,8 @@ public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggrega
}
/**
- * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING,
- * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`.
+ * Output only. The enablement state of the MonitoredAgent (for example, ACTIVE, DISABLED, or
+ * ENABLING).
* @return value or {@code null} for none
*/
public java.lang.String getAgentStatus() {
@@ -149,8 +145,8 @@ public java.lang.String getAgentStatus() {
}
/**
- * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING,
- * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`.
+ * Output only. The enablement state of the MonitoredAgent (for example, ACTIVE, DISABLED, or
+ * ENABLING).
* @param agentStatus agentStatus or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAgentStatus(java.lang.String agentStatus) {
@@ -193,9 +189,8 @@ public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggrega
}
/**
- * Output only. The GCP location (region) of the agent (e.g. `us-central1`). Denormalized from
- * `monitored_agents.location`; empty when the agent is not enrolled or its location column is
- * empty.
+ * Output only. The Google Cloud location (region) of the agent (for example, `us-central1`).
+ * Empty when the agent is not enrolled or its location is unknown.
* @return value or {@code null} for none
*/
public java.lang.String getLocation() {
@@ -203,9 +198,8 @@ public java.lang.String getLocation() {
}
/**
- * Output only. The GCP location (region) of the agent (e.g. `us-central1`). Denormalized from
- * `monitored_agents.location`; empty when the agent is not enrolled or its location column is
- * empty.
+ * Output only. The Google Cloud location (region) of the agent (for example, `us-central1`).
+ * Empty when the agent is not enrolled or its location is unknown.
* @param location location or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setLocation(java.lang.String location) {
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java
index ab4ac978334..3c8ac247f23 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java
@@ -17,7 +17,7 @@
package com.google.api.services.aiplatform.v1beta1.model;
/**
- * An analyzed invocation for monitored agent's session.
+ * Represents an analyzed invocation for a monitored agent's session.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java
index 6a9193e3f2d..941c1c6b07a 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java
@@ -17,7 +17,7 @@
package com.google.api.services.aiplatform.v1beta1.model;
/**
- * An analyzed session for a monitored agent.
+ * Represents an analyzed session for a monitored agent.
*
* 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:
@@ -30,11 +30,9 @@
public final class GoogleCloudAiplatformV1beta1AnalyzedSession extends com.google.api.client.json.GenericJson {
/**
- * Output only. The human-readable display name of the MonitoredAgent that owns this session,
- * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the
- * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the
- * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the
- * `agent_resource_name` URN is always present and can be used as a fallback identifier.
+ * Output only. The human-readable display name of the MonitoredAgent that owns this session. May
+ * be empty when the session's agent is not enrolled as a MonitoredAgent; the
+ * `agent_resource_name` is always present and can be used as a fallback identifier.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -49,10 +47,9 @@ public final class GoogleCloudAiplatformV1beta1AnalyzedSession extends com.googl
private java.lang.String agentResourceName;
/**
- * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g.
- * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from
- * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not
- * enrolled (the JOIN missed) or its state column is empty / unknown.
+ * Output only. The current enablement state of the MonitoredAgent that owns this session (for
+ * example, ACTIVE, DISABLED, or ENABLING). Defaults to ENABLEMENT_STATE_UNSPECIFIED when the
+ * agent is not enrolled or its state is unknown.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -80,9 +77,8 @@ public final class GoogleCloudAiplatformV1beta1AnalyzedSession extends com.googl
private String latestAnalyzedTime;
/**
- * Output only. The GCP location (region) of the agent that ran this session (e.g. `us-central1`).
- * Denormalized from `monitored_agents.location`; empty when the agent is not enrolled or its
- * location column is empty.
+ * Output only. The Google Cloud location (region) of the agent that ran this session (for
+ * example, `us-central1`). Empty when the agent is not enrolled or its location is unknown.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -125,11 +121,9 @@ public final class GoogleCloudAiplatformV1beta1AnalyzedSession extends com.googl
private java.lang.String userId;
/**
- * Output only. The human-readable display name of the MonitoredAgent that owns this session,
- * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the
- * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the
- * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the
- * `agent_resource_name` URN is always present and can be used as a fallback identifier.
+ * Output only. The human-readable display name of the MonitoredAgent that owns this session. May
+ * be empty when the session's agent is not enrolled as a MonitoredAgent; the
+ * `agent_resource_name` is always present and can be used as a fallback identifier.
* @return value or {@code null} for none
*/
public java.lang.String getAgentDisplayName() {
@@ -137,11 +131,9 @@ public java.lang.String getAgentDisplayName() {
}
/**
- * Output only. The human-readable display name of the MonitoredAgent that owns this session,
- * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the
- * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the
- * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the
- * `agent_resource_name` URN is always present and can be used as a fallback identifier.
+ * Output only. The human-readable display name of the MonitoredAgent that owns this session. May
+ * be empty when the session's agent is not enrolled as a MonitoredAgent; the
+ * `agent_resource_name` is always present and can be used as a fallback identifier.
* @param agentDisplayName agentDisplayName or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentDisplayName(java.lang.String agentDisplayName) {
@@ -169,10 +161,9 @@ public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentResourceName(java.lan
}
/**
- * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g.
- * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from
- * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not
- * enrolled (the JOIN missed) or its state column is empty / unknown.
+ * Output only. The current enablement state of the MonitoredAgent that owns this session (for
+ * example, ACTIVE, DISABLED, or ENABLING). Defaults to ENABLEMENT_STATE_UNSPECIFIED when the
+ * agent is not enrolled or its state is unknown.
* @return value or {@code null} for none
*/
public java.lang.String getAgentState() {
@@ -180,10 +171,9 @@ public java.lang.String getAgentState() {
}
/**
- * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g.
- * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from
- * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not
- * enrolled (the JOIN missed) or its state column is empty / unknown.
+ * Output only. The current enablement state of the MonitoredAgent that owns this session (for
+ * example, ACTIVE, DISABLED, or ENABLING). Defaults to ENABLEMENT_STATE_UNSPECIFIED when the
+ * agent is not enrolled or its state is unknown.
* @param agentState agentState or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentState(java.lang.String agentState) {
@@ -243,9 +233,8 @@ public GoogleCloudAiplatformV1beta1AnalyzedSession setLatestAnalyzedTime(String
}
/**
- * Output only. The GCP location (region) of the agent that ran this session (e.g. `us-central1`).
- * Denormalized from `monitored_agents.location`; empty when the agent is not enrolled or its
- * location column is empty.
+ * Output only. The Google Cloud location (region) of the agent that ran this session (for
+ * example, `us-central1`). Empty when the agent is not enrolled or its location is unknown.
* @return value or {@code null} for none
*/
public java.lang.String getLocation() {
@@ -253,9 +242,8 @@ public java.lang.String getLocation() {
}
/**
- * Output only. The GCP location (region) of the agent that ran this session (e.g. `us-central1`).
- * Denormalized from `monitored_agents.location`; empty when the agent is not enrolled or its
- * location column is empty.
+ * Output only. The Google Cloud location (region) of the agent that ran this session (for
+ * example, `us-central1`). Empty when the agent is not enrolled or its location is unknown.
* @param location location or {@code null} for none
*/
public GoogleCloudAiplatformV1beta1AnalyzedSession setLocation(java.lang.String location) {
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java
index cdc3cb065c0..8c092df829c 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java
@@ -17,7 +17,7 @@
package com.google.api.services.aiplatform.v1beta1.model;
/**
- * Breakdown of anomalies by severity.
+ * Breaks down anomalies by severity.
*
* 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:
@@ -37,18 +37,10 @@ public final class GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary ex
private java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see:
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationMetric.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationMetric.java
index 6a698f8d694..bd8a4917c4d 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationMetric.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationMetric.java
@@ -50,6 +50,14 @@ public final class GoogleCloudAiplatformV1beta1EvaluationMetric extends com.goog
@com.google.api.client.util.Key
private java.lang.String displayName;
+ /**
+ * Optional. Customer-managed encryption key spec for this EvaluationMetric. If set, this
+ * EvaluationMetric will be secured by this key.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec;
+
/**
* Optional. The Google Cloud Storage URI that stores the metric specification..
* The value may be {@code null}.
@@ -137,6 +145,25 @@ public GoogleCloudAiplatformV1beta1EvaluationMetric setDisplayName(java.lang.Str
return this;
}
+ /**
+ * Optional. Customer-managed encryption key spec for this EvaluationMetric. If set, this
+ * EvaluationMetric will be secured by this key.
+ * @return value or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1EncryptionSpec getEncryptionSpec() {
+ return encryptionSpec;
+ }
+
+ /**
+ * Optional. Customer-managed encryption key spec for this EvaluationMetric. If set, this
+ * EvaluationMetric will be secured by this key.
+ * @param encryptionSpec encryptionSpec or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1EvaluationMetric setEncryptionSpec(GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec) {
+ this.encryptionSpec = encryptionSpec;
+ return this;
+ }
+
/**
* Optional. The Google Cloud Storage URI that stores the metric specification..
* @return value or {@code null} for none
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackContext.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackContext.java
new file mode 100644
index 00000000000..3fb417e4953
--- /dev/null
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackContext.java
@@ -0,0 +1,99 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+/*
+ * This code was generated by https://github.com/googleapis/google-api-java-client-services/
+ * Modify at your own risk.
+ */
+
+package com.google.api.services.aiplatform.v1beta1.model;
+
+/**
+ * Feedback context is a resource that represents additional information about the conversation
+ * where the feedback was given, such as the conversation history, system instructions, etc. If
+ * provided, feedback context allows to correlate the feedback with the conversation, even if the
+ * original session is deleted or not available.
+ *
+ * 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:
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters.java
index ff38b1b9635..0f4aa2dbe8c 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters.java
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters.java
@@ -89,6 +89,13 @@ public final class GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameter
@com.google.api.client.util.Key
private java.lang.Integer samplesPerPrompt;
+ /**
+ * Optional. Number of steps for the tuning job (mutually exclusive with epoch_count).
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key @com.google.api.client.json.JsonString
+ private java.lang.Long stepCount;
+
/**
* Optional. The thinking budget for the tuning job to optimize for (Gemini 2.5 only). * -1 means
* dynamic thinking * 0 means no thinking * > 0 means thinking budget in tokens If not set,
@@ -251,6 +258,23 @@ public GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters setSamples
return this;
}
+ /**
+ * Optional. Number of steps for the tuning job (mutually exclusive with epoch_count).
+ * @return value or {@code null} for none
+ */
+ public java.lang.Long getStepCount() {
+ return stepCount;
+ }
+
+ /**
+ * Optional. Number of steps for the tuning job (mutually exclusive with epoch_count).
+ * @param stepCount stepCount or {@code null} for none
+ */
+ public GoogleCloudAiplatformV1beta1ReinforcementTuningHyperParameters setStepCount(java.lang.Long stepCount) {
+ this.stepCount = stepCount;
+ return this;
+ }
+
/**
* Optional. The thinking budget for the tuning job to optimize for (Gemini 2.5 only). * -1 means
* dynamic thinking * 0 means no thinking * > 0 means thinking budget in tokens If not set,
diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml
index a79c0d78727..3212f7b5168 100644
--- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml
+++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml
@@ -8,8 +8,8 @@