From 5e55e03f22482165b48ca3c9945ff67916617533 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 14 Jul 2026 18:09:50 -0700 Subject: [PATCH] chore: regenerate aiplatform client --- .../v1/2.0.0/README.md | 4 +- .../services/aiplatform/v1/Aiplatform.java | 2605 +++- ...eModelsVisionGenerateVideoExperiments.java | 24 + ...ogleCloudAiplatformV1EvaluationMetric.java | 27 + .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- .../v1beta1/2.0.0/README.md | 4 +- .../aiplatform/v1beta1/Aiplatform.java | 11069 +++++++++++----- ...eModelsVisionGenerateVideoExperiments.java | 24 + .../GenaiVertexV1beta1EnvironmentConfig.java | 27 + .../model/GenaiVertexV1beta1Interaction.java | 36 + ...ertexV1beta1InteractionStreamingEvent.java | 84 +- ...aiVertexV1beta1LocalEnvironmentConfig.java | 50 + ...formV1beta1AgentAnomalyDetectionScope.java | 26 +- ...leCloudAiplatformV1beta1AgentResource.java | 9 +- ...eta1AggregateAnalyzedSessionsResponse.java | 2 +- ...nalyzedSessionsResponseAgentAggregate.java | 38 +- ...udAiplatformV1beta1AnalyzedInvocation.java | 2 +- ...CloudAiplatformV1beta1AnalyzedSession.java | 62 +- ...V1beta1AnalyzedSessionSeveritySummary.java | 50 +- ...oogleCloudAiplatformV1beta1Assessment.java | 2 +- ...loudAiplatformV1beta1EvaluationMetric.java | 27 + ...CloudAiplatformV1beta1FeedbackContext.java | 99 + ...leCloudAiplatformV1beta1FeedbackEntry.java | 315 + ...rmV1beta1ListAnalyzedSessionsResponse.java | 15 +- ...stAnalyzedSessionsResponseViewSummary.java | 42 +- ...ormV1beta1ListFeedbackEntriesResponse.java | 99 + ...ormV1beta1ListMonitoredAgentsResponse.java | 12 +- ...eCloudAiplatformV1beta1MonitoredAgent.java | 2 +- ...ta1ReinforcementTuningHyperParameters.java | 24 + .../v1beta1/2.0.0/pom.xml | 4 +- .../v1beta1/README.md | 4 +- 32 files changed, 10797 insertions(+), 3999 deletions(-) create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1LocalEnvironmentConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackContext.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackEntry.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse.java 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: com.google.apis google-api-services-aiplatform - v1-rev20260703-2.0.0 + v1-rev20260704-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260703-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260704-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java index fa66c8efe81..038f296d9b7 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java @@ -84775,227 +84775,1634 @@ public Memories memories() { public class Memories { /** - * Get a Memory. + * Create a Memory. * - * Create a request for the method "memories.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the Memory. Format: - * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem - * ory}` + * @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.v1.model.GoogleCloudAiplatformV1Memory} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Memory content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/memories"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); /** - * Get a Memory. + * Create a Memory. * - * Create a request for the method "memories.get". + * Create a request for the method "memories.create". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The resource name of the Memory. Format: - * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem - * ory}` + * @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.v1.model.GoogleCloudAiplatformV1Memory} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Memory.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.v1.model.GoogleCloudAiplatformV1Memory content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * 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 parent; + + /** Required. The resource name of the ReasoningEngine to create the Memory under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; } /** - * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc - * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * 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 name; + private java.lang.String memoryId; - /** Required. The resource name of the Memory. Format: - `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + /** 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 getName() { - return name; + public java.lang.String getMemoryId() { + return memoryId; } /** - * Required. The resource name of the Memory. Format: `projects/{project}/locations/{loc - * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * 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 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/[^/]+$"); - } - this.name = name; + public Create setMemoryId(java.lang.String memoryId) { + this.memoryId = memoryId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Delete a Memory. * - *

The typical use is:

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

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @param name Required. The resource name of the Memory to delete. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}:cancel"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + @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 Memory to delete. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Memory to delete. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Memory to delete. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + 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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Generate memories. + * + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * + * @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.v1.model.GoogleCloudAiplatformV1GenerateMemoriesRequest} + * @return the request + */ + public Generate generate(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateMemoriesRequest content) throws java.io.IOException { + Generate result = new Generate(parent, content); + initialize(result); + return result; + } + + public class Generate extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/memories:generate"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + + /** + * Generate memories. + * + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

{@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.v1.model.GoogleCloudAiplatformV1GenerateMemoriesRequest} + * @since 1.13 + */ + protected Generate(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateMemoriesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/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 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 { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * Get a Memory. + * + * Create a request for the method "memories.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The 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.v1.model.GoogleCloudAiplatformV1Memory.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be 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/[^/]+$"); + } + } + + @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. Format: `projects/{project}/locations/{loc + * ation}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Memory. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getName() { + return name; + } + + /** + * 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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List Memories. + * + * 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 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 parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/memories"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + + /** + * List Memories. + * + * Create a request for the method "memories.list". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The 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 parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ListMemoriesResponse.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 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 to list the Memories under. + * 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 list the Memories under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * 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; + + /** 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; + } + + /** + * 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; + } + + /** + * 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; + + /** 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); + } + } + /** + * Update a Memory. + * + * 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 Patch#execute()} method to invoke the remote operation. + * + * @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.v1.model.GoogleCloudAiplatformV1Memory} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Memory content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * Update a Memory. + * + * Create a request for the method "memories.patch". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * 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 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.v1.model.GoogleCloudAiplatformV1Memory} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Memory content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + } + + @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. 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; + + /** 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; + } + + /** + * 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/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Mask specifying which fields to update. The following fields are immutable: + * * `scope` * `memory_type` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Mask specifying which fields to update. The following fields are immutable: * `scope` * + `memory_type` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Mask specifying which fields to update. The following fields are immutable: + * * `scope` * `memory_type` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Purge memories. + * + * Create a request for the method "memories.purge". + * + * 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 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.v1.model.GoogleCloudAiplatformV1PurgeMemoriesRequest} + * @return the request + */ + public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1PurgeMemoriesRequest content) throws java.io.IOException { + Purge result = new Purge(parent, content); + initialize(result); + return result; + } + + public class Purge extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/memories:purge"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + + /** + * Purge memories. + * + * Create a request for the method "memories.purge". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Purge#execute()} method to invoke the remote operation. + *

{@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.v1.model.GoogleCloudAiplatformV1PurgeMemoriesRequest} + * @since 1.13 + */ + protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1PurgeMemoriesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + } + } + + @Override + public Purge set$Xgafv(java.lang.String $Xgafv) { + return (Purge) super.set$Xgafv($Xgafv); + } + + @Override + public Purge setAccessToken(java.lang.String accessToken) { + return (Purge) super.setAccessToken(accessToken); + } + + @Override + public Purge setAlt(java.lang.String alt) { + return (Purge) super.setAlt(alt); + } + + @Override + public Purge setCallback(java.lang.String callback) { + return (Purge) super.setCallback(callback); + } + + @Override + public Purge setFields(java.lang.String fields) { + return (Purge) super.setFields(fields); + } + + @Override + public Purge setKey(java.lang.String key) { + return (Purge) super.setKey(key); + } + + @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); + } + + @Override + public Purge setQuotaUser(java.lang.String quotaUser) { + return (Purge) super.setQuotaUser(quotaUser); + } + + @Override + public Purge setUploadType(java.lang.String uploadType) { + return (Purge) super.setUploadType(uploadType); + } + + @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; + + /** 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; + } + + /** + * 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 Purge set(String parameterName, Object value) { + return (Purge) super.set(parameterName, value); + } + } + /** + * Retrieve memories. + * + * Create a request for the method "memories.retrieve". + * + * 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 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.v1.model.GoogleCloudAiplatformV1RetrieveMemoriesRequest} + * @return the request + */ + public Retrieve retrieve(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RetrieveMemoriesRequest content) throws java.io.IOException { + Retrieve result = new Retrieve(parent, content); + initialize(result); + return result; + } + + public class Retrieve extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/memories:retrieve"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + + /** + * 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.v1.model.GoogleCloudAiplatformV1RetrieveMemoriesRequest} + * @since 1.13 + */ + protected Retrieve(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RetrieveMemoriesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RetrieveMemoriesResponse.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 Retrieve set$Xgafv(java.lang.String $Xgafv) { + return (Retrieve) super.set$Xgafv($Xgafv); + } + + @Override + public Retrieve setAccessToken(java.lang.String accessToken) { + return (Retrieve) super.setAccessToken(accessToken); + } + + @Override + public Retrieve setAlt(java.lang.String alt) { + return (Retrieve) super.setAlt(alt); + } + + @Override + public Retrieve setCallback(java.lang.String callback) { + return (Retrieve) super.setCallback(callback); + } + + @Override + public Retrieve setFields(java.lang.String fields) { + return (Retrieve) super.setFields(fields); + } + + @Override + public Retrieve setKey(java.lang.String key) { + return (Retrieve) super.setKey(key); + } + + @Override + public Retrieve setOauthToken(java.lang.String oauthToken) { + return (Retrieve) super.setOauthToken(oauthToken); + } + + @Override + public Retrieve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retrieve) super.setPrettyPrint(prettyPrint); + } + + @Override + public Retrieve setQuotaUser(java.lang.String quotaUser) { + return (Retrieve) super.setQuotaUser(quotaUser); + } + + @Override + public Retrieve setUploadType(java.lang.String uploadType) { + return (Retrieve) super.setUploadType(uploadType); + } + + @Override + public Retrieve setUploadProtocol(java.lang.String uploadProtocol) { + return (Retrieve) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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 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 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; + } + + @Override + public Retrieve set(String parameterName, Object value) { + return (Retrieve) super.set(parameterName, value); + } + } + /** + * Rollback Memory to a specific revision. + * + * 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 Rollback#execute()} method to invoke the remote operation. + * + * @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.v1.model.GoogleCloudAiplatformV1RollbackMemoryRequest} + * @return the request + */ + public Rollback rollback(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RollbackMemoryRequest content) throws java.io.IOException { + Rollback result = new Rollback(name, content); + initialize(result); + return result; + } + + public class Rollback extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:rollback"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * Rollback Memory to a specific revision. + * + * Create a request for the method "memories.rollback". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * 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 to rollback. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RollbackMemoryRequest} + * @since 1.13 + */ + protected Rollback(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1RollbackMemoryRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + } + + @Override + public Rollback set$Xgafv(java.lang.String $Xgafv) { + return (Rollback) super.set$Xgafv($Xgafv); + } + + @Override + public Rollback setAccessToken(java.lang.String accessToken) { + return (Rollback) super.setAccessToken(accessToken); + } + + @Override + public Rollback setAlt(java.lang.String alt) { + return (Rollback) super.setAlt(alt); + } + + @Override + public Rollback setCallback(java.lang.String callback) { + return (Rollback) super.setCallback(callback); + } + + @Override + public Rollback setFields(java.lang.String fields) { + return (Rollback) super.setFields(fields); + } + + @Override + public Rollback setKey(java.lang.String key) { + return (Rollback) super.setKey(key); + } + + @Override + public Rollback setOauthToken(java.lang.String oauthToken) { + return (Rollback) super.setOauthToken(oauthToken); + } + + @Override + public Rollback setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Rollback) super.setPrettyPrint(prettyPrint); + } + + @Override + public Rollback setQuotaUser(java.lang.String quotaUser) { + return (Rollback) super.setQuotaUser(quotaUser); + } + + @Override + public Rollback setUploadType(java.lang.String uploadType) { + return (Rollback) super.setUploadType(uploadType); + } + + @Override + public Rollback setUploadProtocol(java.lang.String uploadProtocol) { + return (Rollback) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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 to rollback. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Memory to rollback. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Rollback set(String parameterName, Object value) { + return (Rollback) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/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". + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be cancelled. + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), @@ -85005,72 +86412,212 @@ protected Cancel(java.lang.String name) { } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be cancelled. + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + @@ -85081,269 +86628,359 @@ public Cancel setName(java.lang.String name) { } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "operations.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name The name of the operation's parent resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class Delete extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "operations.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link 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.

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

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be deleted. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleProtobufEmpty.class); + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to be deleted. */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be deleted. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } this.name = name; return this; } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. * - * Create a request for the method "operations.get". + * Create a request for the method "operations.wait". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name The name of the operation resource to wait on. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. * - * Create a request for the method "operations.get". + * Create a request for the method "operations.wait". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@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.

* - * @param name The name of the operation resource. + * @param name The name of the operation resource to wait on. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation 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 " + @@ -85353,57 +86990,105 @@ public Get setName(java.lang.String name) { return this; } + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context + * deadline is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Revisions collection. + * + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Revisions.List request = aiplatform.revisions().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } + + /** + * The "revisions" collection of methods. + */ + public class Revisions { + /** - * 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 { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/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 the aiplatform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation'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}` * @since 1.13 */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningListOperationsResponse.class); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1MemoryRevision.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/revisions/[^/]+$"); } } @@ -85418,333 +87103,301 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @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); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + 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); } /** - * 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. + * 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.Boolean returnPartialSuccess; + private java.lang.String name; - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. + /** 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.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getName() { + return name; } /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. + * Required. The resource name of the Memory Revision to retrieve. Format: `projects/{ + * project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory} + * /revisions/{revision}` */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * 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. + * List Memory Revisions for a Memory. * - * Create a request for the method "operations.wait". + * 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 Wait#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @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 Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Wait extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1/{+name}:wait"; + private static final String REST_PATH = "v1/{+parent}/revisions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); /** - * 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. + * List Memory Revisions for a Memory. * - * Create a request for the method "operations.wait". + * Create a request for the method "revisions.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to wait on. + * @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 Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1ListMemoryRevisionsResponse.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/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + 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 Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to wait on. */ + @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 name; + private java.lang.String parent; - /** The name of the operation resource to wait on. + /** 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 getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** + * 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. + * Optional. The 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 String timeout; + private java.lang.String filter; - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. + /** Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). Supported + fields (equality match only): * `labels` */ - public String getTimeout() { - return timeout; + public java.lang.String getFilter() { + return filter; } /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context - * deadline is also specified, the shorter one will be used. + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). Supported fields (equality match only): * + * `labels` */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + 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 Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java index e3e8963dc83..22b852e63bb 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/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/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationMetric.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationMetric.java index 8b155fac279..ada2ca96ae0 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationMetric.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationMetric.java @@ -50,6 +50,14 @@ public final class GoogleCloudAiplatformV1EvaluationMetric extends com.google.ap @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 GoogleCloudAiplatformV1EncryptionSpec encryptionSpec; + /** * Optional. The Google Cloud Storage URI that stores the metric specification.. * The value may be {@code null}. @@ -137,6 +145,25 @@ public GoogleCloudAiplatformV1EvaluationMetric setDisplayName(java.lang.String d 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 GoogleCloudAiplatformV1EncryptionSpec 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 GoogleCloudAiplatformV1EvaluationMetric setEncryptionSpec(GoogleCloudAiplatformV1EncryptionSpec 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/v1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml index 8b8664c3acb..aca9e4d9b75 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1-rev20260703-2.0.0 - Agent Platform API v1-rev20260703-2.0.0 + v1-rev20260704-2.0.0 + Agent Platform API v1-rev20260704-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index 99427a70610..15c8aded782 100644 --- a/clients/google-api-services-aiplatform/v1/README.md +++ b/clients/google-api-services-aiplatform/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20260703-2.0.0 + v1-rev20260704-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260703-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260704-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md index f57c5ee656f..aa9662d3958 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260703-2.0.0 + v1beta1-rev20260704-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260703-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260704-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java index 42956b39568..6511b7a177b 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java @@ -29103,6 +29103,455 @@ public Memories memories() { */ public class Memories { + /** + * Create a Memory. + * + * 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 Create#execute()} method to invoke the remote operation. + * + * @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 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 Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/memories"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+$"); + + /** + * Create a Memory. + * + * Create a request for the method "memories.create". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The 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 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^memoryBanks/[^/]+$"); + } + } + + @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 to create the Memory under. 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 create the Memory under. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^memoryBanks/[^/]+$"); + } + 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 Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete a Memory. + * + * 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 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 { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * Delete a Memory. + * + * Create a request for the method "memories.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The resource name of the Memory to delete. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{mem + * ory}` + * @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 " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } + } + + @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 Memory to delete. Format: `projects/{project}/location + * s/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Memory to delete. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Memory to delete. Format: `projects/{project}/location + * s/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + 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 " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Generate memories. + * + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * + * @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} + * @return the request + */ + public Generate generate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateMemoriesRequest content) throws java.io.IOException { + Generate result = new Generate(parent, content); + initialize(result); + return result; + } + + public class Generate extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/memories:generate"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+$"); + + /** + * Generate memories. + * + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

{@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 " + + "^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 " + + "^memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); + } + } /** * Get a Memory. * @@ -29252,378 +29701,1201 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * List Memories. * - *

The typical use is:

- *
-       *   {@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 { + + private static final String REST_PATH = "v1beta1/{+parent}/memories"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+$"); /** - * 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`. + * List Memories. * - * Create a request for the method "operations.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @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 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^memoryBanks/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The 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 parent; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private 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 java.lang.String getParent() { + return parent; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^memoryBanks/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * 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; - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** 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; } + /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request + * 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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** + * 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; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** 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; + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * 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; + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update a Memory. + * + * 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 Patch#execute()} method to invoke the remote operation. + * + * @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 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; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Patch extends AiplatformRequest { - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Update a Memory. * - * Create a request for the method "operations.get". + * 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 Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link 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. - * @return the request + * @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 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.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 " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } } - public class Get extends AiplatformRequest { + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); - } - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Represents the resource name of the Memory. Format: `projects/{project}/locat + * ions/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** 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; + } + + /** + * Identifier. Represents the resource name of the Memory. Format: `projects/{project}/locat + * ions/{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 " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Mask specifying which fields to update. The following fields are immutable: * + * `scope` * `memory_type` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Mask specifying which fields to update. The following fields are immutable: * `scope` * + `memory_type` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Mask specifying which fields to update. The following fields are immutable: * + * `scope` * `memory_type` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Purge memories. + * + * Create a request for the method "memories.purge". + * + * 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 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 + */ + 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; + } + + public class Purge extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/memories:purge"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+$"); + + /** + * Purge memories. + * + * Create a request for the method "memories.purge". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Purge#execute()} method to invoke the remote operation. + *

{@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 " + + "^memoryBanks/[^/]+$"); + } + } + + @Override + public Purge set$Xgafv(java.lang.String $Xgafv) { + return (Purge) super.set$Xgafv($Xgafv); + } + + @Override + public Purge setAccessToken(java.lang.String accessToken) { + return (Purge) super.setAccessToken(accessToken); + } + + @Override + public Purge setAlt(java.lang.String alt) { + return (Purge) super.setAlt(alt); + } + + @Override + public Purge setCallback(java.lang.String callback) { + return (Purge) super.setCallback(callback); + } + + @Override + public Purge setFields(java.lang.String fields) { + return (Purge) super.setFields(fields); + } + + @Override + public Purge setKey(java.lang.String key) { + return (Purge) super.setKey(key); + } + + @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); + } + + @Override + public Purge setQuotaUser(java.lang.String quotaUser) { + return (Purge) super.setQuotaUser(quotaUser); + } + + @Override + public Purge setUploadType(java.lang.String uploadType) { + return (Purge) super.setUploadType(uploadType); + } + + @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; + + /** 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; + } + + /** + * 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 " + + "^memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Purge set(String parameterName, Object value) { + return (Purge) super.set(parameterName, value); + } + } + /** + * Retrieve memories. + * + * Create a request for the method "memories.retrieve". + * + * 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 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 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; + } + + public class Retrieve extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/memories:retrieve"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+$"); + + /** + * 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 " + + "^memoryBanks/[^/]+$"); + } + } + + @Override + public Retrieve set$Xgafv(java.lang.String $Xgafv) { + return (Retrieve) super.set$Xgafv($Xgafv); + } + + @Override + public Retrieve setAccessToken(java.lang.String accessToken) { + return (Retrieve) super.setAccessToken(accessToken); + } + + @Override + public Retrieve setAlt(java.lang.String alt) { + return (Retrieve) super.setAlt(alt); + } + + @Override + public Retrieve setCallback(java.lang.String callback) { + return (Retrieve) super.setCallback(callback); + } + + @Override + public Retrieve setFields(java.lang.String fields) { + return (Retrieve) super.setFields(fields); + } + + @Override + public Retrieve setKey(java.lang.String key) { + return (Retrieve) super.setKey(key); + } + + @Override + public Retrieve setOauthToken(java.lang.String oauthToken) { + return (Retrieve) super.setOauthToken(oauthToken); + } + + @Override + public Retrieve setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Retrieve) super.setPrettyPrint(prettyPrint); + } + + @Override + public Retrieve setQuotaUser(java.lang.String quotaUser) { + return (Retrieve) super.setQuotaUser(quotaUser); + } + + @Override + public Retrieve setUploadType(java.lang.String uploadType) { + return (Retrieve) super.setUploadType(uploadType); + } + + @Override + public Retrieve setUploadProtocol(java.lang.String uploadProtocol) { + return (Retrieve) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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 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 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 " + + "^memoryBanks/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Retrieve set(String parameterName, Object value) { + return (Retrieve) super.set(parameterName, value); + } + } + /** + * Rollback Memory to a specific revision. + * + * 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 Rollback#execute()} method to invoke the remote operation. + * + * @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 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 Rollback extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:rollback"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * Rollback Memory to a specific revision. + * + * Create a request for the method "memories.rollback". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * 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 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 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(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } + } + + @Override + public Rollback set$Xgafv(java.lang.String $Xgafv) { + return (Rollback) super.set$Xgafv($Xgafv); + } + + @Override + public Rollback setAccessToken(java.lang.String accessToken) { + return (Rollback) super.setAccessToken(accessToken); + } + + @Override + public Rollback setAlt(java.lang.String alt) { + return (Rollback) super.setAlt(alt); + } + + @Override + public Rollback setCallback(java.lang.String callback) { + return (Rollback) super.setCallback(callback); + } + + @Override + public Rollback setFields(java.lang.String fields) { + return (Rollback) super.setFields(fields); + } + + @Override + public Rollback setKey(java.lang.String key) { + return (Rollback) super.setKey(key); + } + + @Override + public Rollback setOauthToken(java.lang.String oauthToken) { + return (Rollback) super.setOauthToken(oauthToken); + } + + @Override + public Rollback setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Rollback) super.setPrettyPrint(prettyPrint); + } + + @Override + public Rollback setQuotaUser(java.lang.String quotaUser) { + return (Rollback) super.setQuotaUser(quotaUser); + } + + @Override + public Rollback setUploadType(java.lang.String uploadType) { + return (Rollback) super.setUploadType(uploadType); + } + + @Override + public Rollback setUploadProtocol(java.lang.String uploadProtocol) { + return (Rollback) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Memory to rollback. Format: `projects/{project}/locati + * ons/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Memory to rollback. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Memory to rollback. Format: `projects/{project}/locati + * ons/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ + 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 " + + "^memoryBanks/[^/]+/memories/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Rollback set(String parameterName, Object value) { + return (Rollback) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override @@ -30078,126 +31350,503 @@ public Wait set(String parameterName, Object value) { } } - } - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-     *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-     *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-     * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". + * 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. + *

The typical use is:

+ *
+       *   {@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 { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^memoryBanks/[^/]+/operations/[^/]+$"); + /** + * The "revisions" collection of methods. + */ + public class Revisions { /** - * 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`. + * Get a Memory Revision. * - * Create a request for the method "operations.cancel". + * Create a request for the method "revisions.get". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * 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 to be cancelled. - * @since 1.13 + * @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 */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^memoryBanks/[^/]+/operations/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+/revisions/[^/]+$"); - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + /** + * Get a Memory Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The 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 " + + "^memoryBanks/[^/]+/memories/[^/]+/revisions/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @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/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisio + * ns/{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/{proj + * ect}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisio + * ns/{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 " + + "^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 { + + private static final String REST_PATH = "v1beta1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * List Memory Revisions for a Memory. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The 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 " + + "^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/{pro + * ject}/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/{pro + * ject}/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 " + + "^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. + * + *

The typical use is:

+ *
+     *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+     *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^memoryBanks/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^memoryBanks/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } @Override public Cancel setQuotaUser(java.lang.String quotaUser) { @@ -104355,7 +106004,1684 @@ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits until the specified long-running operation is done or reaches at most a specified timeout, + * returning the latest state. If the operation is already done, the latest state is immediately + * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + * timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an immediate + * response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to wait on. + * @return the request + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } + + public class Wait extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:wait"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + + /** + * Waits until the specified long-running operation is done or reaches at most a specified + * timeout, returning the latest state. If the operation is already done, the latest state is + * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, + * the HTTP/RPC timeout is used. If the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return + * the latest state before the specified timeout (including immediately), meaning even an + * immediate response is no guarantee that the operation is done. + * + * Create a request for the method "operations.wait". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

+ * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to wait on. + * @since 1.13 + */ + protected Wait(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to wait on. */ + public Wait setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + @com.google.api.client.util.Key + private String timeout; + + /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time + permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the + shorter one will be used. + */ + public String getTimeout() { + return timeout; + } + + /** + * The maximum duration to wait before timing out. If left blank, the wait will be at + * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline + * is also specified, the shorter one will be used. + */ + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the HyperparameterTuningJobs collection. + * + *

The typical use is:

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

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name 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} + * @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); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be 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/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project + * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + @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}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project + * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} + * @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); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.create". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The 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} + * @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."); + 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 HyperparameterTuningJob 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 HyperparameterTuningJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the HyperparameterTuningJob in. + * Format: `projects/{project}/locations/{location}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a HyperparameterTuningJob. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + + /** + * Deletes a HyperparameterTuningJob. + * + * Create a request for the method "hyperparameterTuningJobs.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + } + + @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 HyperparameterTuningJob resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job + * }` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the HyperparameterTuningJob resource to be deleted. Format: + `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job + * }` + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + + /** + * Gets a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the HyperparameterTuningJob resource. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @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); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be 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/[^/]+$"); + } + } + + @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 HyperparameterTuningJob resource. Format: `projects/{project} + * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + @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}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} + * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists HyperparameterTuningJobs in a Location. + * + * Create a request for the method "hyperparameterTuningJobs.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: + * `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 { + + private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists HyperparameterTuningJobs in a Location. + * + * Create a request for the method "hyperparameterTuningJobs.list". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to list the HyperparameterTuningJobs from. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to list the HyperparameterTuningJobs from. + * Format: `projects/{project}/locations/{location}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, + `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general + map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some + examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + * comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * + * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be + * in RFC 3339 format. * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of + * using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` * + * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name="my_job"` * + * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The standard list page token. Typically obtained via + * ListHyperparameterTuningJobsResponse.next_page_token of the previous + * JobService.ListHyperparameterTuningJobs 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. + */ + 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. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; + + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } + + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -104390,7 +107716,7 @@ public class Delete extends AiplatformRequestThe typical use is:

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

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

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

{@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 { + public class DeployIndex extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:deployIndex"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The name of the 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 { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/indexEndpoints"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The 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 { + + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:mutateDeployedIndex"; + + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + + /** + * Update an existing DeployedIndex under an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.mutateDeployedIndex". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + + /** + * Updates an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.patch". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:readIndexDatapoints"; + + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + + /** + * 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 the aiplatform server. After setting any + * optional parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote + * operation.

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

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

*
        *   {@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 { - private static final String REST_PATH = "v1beta1/{+parent}/indexEndpoints"; + private static final String REST_PATH = "v1beta1/{+parent}/indexes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -106765,12 +110787,12 @@ public class Create extends AiplatformRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) { + 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()) { @@ -106836,13 +110858,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to create the IndexEndpoint in. Format: + * 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 IndexEndpoint in. Format: + /** Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -106850,7 +110872,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create the IndexEndpoint in. Format: + * Required. The resource name of the Location to create the Index in. Format: * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { @@ -106869,15 +110891,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an IndexEndpoint. + * Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. * - * Create a request for the method "indexEndpoints.delete". + * 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 IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @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 { @@ -106891,12 +110913,13 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @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) { @@ -106914,7 +110937,7 @@ protected Delete(java.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/[^/]+$"); } } @@ -106974,28 +110997,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * 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 IndexEndpoint resource to be deleted. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** 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 IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } this.name = name; return this; @@ -107007,441 +111030,301 @@ public Delete set(String parameterName, Object value) { } } /** - * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + * Gets an Index. * - * Create a request for the method "indexEndpoints.deployIndex". + * 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 DeployIndex#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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.GoogleCloudAiplatformV1beta1DeployIndexRequest} + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @return the request */ - 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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class DeployIndex extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:deployIndex"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + * Gets an Index. * - * Create a request for the method "indexEndpoints.deployIndex". + * Create a request for the method "indexes.get". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DeployIndex#execute()} method to invoke the remote - * operation.

{@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 { - - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:findNeighbors"; - - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - - /** - * 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 the aiplatform server. After setting any - * 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 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 { + public class AiplatformImport extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:import"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * 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 { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/indexEndpoints"; + private static final String REST_PATH = "v1beta1/{+parent}/indexes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The 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 { - - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:mutateDeployedIndex"; - - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - - /** - * Update an existing DeployedIndex under an IndexEndpoint. - * - * Create a request for the method "indexEndpoints.mutateDeployedIndex". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote - * operation.

{@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 { + public class Patch extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -107859,17 +111570,17 @@ public class Patch extends AiplatformRequest * - * @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} * @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); + 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @@ -107928,38 +111639,45 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Output only. The resource name of the IndexEndpoint. */ + /** Output only. The resource name of the Index. */ @com.google.api.client.util.Key private java.lang.String name; - /** Output only. The resource name of the IndexEndpoint. + /** Output only. The resource name of the Index. */ public java.lang.String getName() { return name; } - /** Output only. The resource name of the IndexEndpoint. */ + /** 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } this.name = name; return this; } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + /** + * The update mask applies to the resource. For the `FieldMask` definition, 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. + /** The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. */ public String getUpdateMask() { return updateMask; } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + /** + * The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. + */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; @@ -107971,287 +111689,283 @@ public Patch set(String parameterName, Object value) { } } /** - * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a - * batch. + * Remove Datapoints from an Index. * - * Create a request for the method "indexEndpoints.readIndexDatapoints". + * Create a request for the method "indexes.removeDatapoints". * * 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. + * parameters, call the {@link RemoveDatapoints#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} + * @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} * @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); + 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); initialize(result); return result; } - public class ReadIndexDatapoints extends AiplatformRequest { + public class RemoveDatapoints extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:readIndexDatapoints"; + private static final String REST_PATH = "v1beta1/{+index}:removeDatapoints"; - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + private final java.util.regex.Pattern INDEX_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in - * a batch. + * Remove Datapoints from an Index. * - * Create a request for the method "indexEndpoints.readIndexDatapoints". + * Create a request for the method "indexes.removeDatapoints". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote - * operation.

{@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 { + public class UpsertDatapoints extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:undeployIndex"; + private static final String REST_PATH = "v1beta1/{+index}:upsertDatapoints"; - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + private final java.util.regex.Pattern INDEX_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link UndeployIndex#execute()} method to invoke the remote - * operation.

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

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

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the 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 { - - private static final String REST_PATH = "v1beta1/{+name}:import"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); - - /** - * 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 the aiplatform server. After setting any - * 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 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 { - - private static final String REST_PATH = "v1beta1/{+parent}/indexes"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Lists Indexes in a Location. - * - * Create a request for the method "indexes.list". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The 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 { - - private static final String REST_PATH = "v1beta1/{+name}"; + public class Create extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:create"; /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@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 { - - private static final String REST_PATH = "v1beta1/{+index}:removeDatapoints"; + public class CreateStream extends AiplatformRequest { - private final java.util.regex.Pattern INDEX_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:createStream"; /** - * 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 the aiplatform server. After setting any - * 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.

+ * 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 { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+index}:upsertDatapoints"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern INDEX_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * 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.

+ * 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 { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+parent}/memories"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@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 { + public class Delete extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -110520,16 +113468,18 @@ public class Delete extends AiplatformRequest * - * @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}` * @since 1.13 */ protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + 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/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } } @@ -110588,22 +113538,29 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. The resource name of the Memory to delete. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be deleted. + /** Required. The resource name of the Memory to delete. Format: + `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ + /** + * Required. The resource name of the Memory to delete. Format: `projects/{project}/loca + * tions/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + */ 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/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); } this.name = name; return this; @@ -110615,15 +113572,156 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Generate memories. * - * Create a request for the method "operations.get". + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * + * @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} + * @return the request + */ + public Generate generate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateMemoriesRequest content) throws java.io.IOException { + Generate result = new Generate(parent, content); + initialize(result); + return result; + } + + public class Generate extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/memories:generate"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); + + /** + * Generate memories. + * + * Create a request for the method "memories.generate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

{@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 { + public class Get extends AiplatformRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. + * Get a Memory. * - * Create a request for the method "operations.get". + * Create a request for the method "memories.get". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation resource. + * @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 { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+parent}/memories"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); /** - * 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 the aiplatform server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name The name of the operation's parent resource. + * @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 { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); /** - * 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 the aiplatform server. After setting any - * optional parameters, call the {@link Wait#execute()} method to invoke the remote operation.

- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * 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 { - - private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:create"; - /** - * Creates an interaction. + * Purge memories. * - * Create a request for the method "interactions.create". + * Create a request for the method "memories.purge". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link 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 { - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+parent}/memories:purge"; - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + /** + * Purge memories. + * + * Create a request for the method "memories.purge". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Purge#execute()} method to invoke the remote operation. + *

{@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 { - - private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:createStream"; - /** - * Creates an interaction and streams the response. + * Retrieve memories. * - * Create a request for the method "interactions.createStream". + * 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 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.

+ * 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 { + public class Retrieve extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/memories:retrieve"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$"); - /** - * Deletes an interaction. - * - * Create a request for the method "interactions.delete". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the 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 { + public class Rollback extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:rollback"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/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 the aiplatform server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link 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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/revisions/[^/]+$"); + + /** + * Get a Memory Revision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/revisions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$"); + + /** + * List Memory Revisions for a Memory. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

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

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

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

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The resource name of the 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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+$"); + + /** + * Retrieves a single FeedbackEntry by its resource name. + * + * Create a request for the method "feedbackEntries.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The 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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/feedbackEntries/[^/]+/feedbackContext$"); + + /** + * Retrieves the FeedbackContext associated with a FeedbackEntry. + * + * Create a request for the method "feedbackEntries.getFeedbackContext". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetFeedbackContext#execute()} method to invoke the remote + * operation.

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

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

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

{@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.List sources; + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Optional. The environment ID for the interaction. If specified, the request will update the + * existing environment instead of creating a new one. + * @param environmentId environmentId or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfig setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + /** * Allow only specific domains. * @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/GenaiVertexV1beta1Interaction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java index ef6ef8eedd9..5a6b96c3577 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java @@ -80,6 +80,17 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String id; + /** + * The agent's environment lives on the client connection: its built-in environment operations + * (filesystem ops and running commands) are yielded to the client to execute, instead of running + * in a server-managed sandbox. Mutually exclusive with `remote_environment`. (Independent of any + * client-declared function tools, which are always executed on the client regardless of this + * field.) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1LocalEnvironmentConfig localEnvironment; + /** * Interaction for generating the completion using models. * The value may be {@code null}. @@ -341,6 +352,31 @@ public GenaiVertexV1beta1Interaction setId(java.lang.String id) { return this; } + /** + * The agent's environment lives on the client connection: its built-in environment operations + * (filesystem ops and running commands) are yielded to the client to execute, instead of running + * in a server-managed sandbox. Mutually exclusive with `remote_environment`. (Independent of any + * client-declared function tools, which are always executed on the client regardless of this + * field.) + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1LocalEnvironmentConfig getLocalEnvironment() { + return localEnvironment; + } + + /** + * The agent's environment lives on the client connection: its built-in environment operations + * (filesystem ops and running commands) are yielded to the client to execute, instead of running + * in a server-managed sandbox. Mutually exclusive with `remote_environment`. (Independent of any + * client-declared function tools, which are always executed on the client regardless of this + * field.) + * @param localEnvironment localEnvironment or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setLocalEnvironment(GenaiVertexV1beta1LocalEnvironmentConfig localEnvironment) { + this.localEnvironment = localEnvironment; + return this; + } + /** * Interaction for generating the completion using models. * @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/GenaiVertexV1beta1InteractionStreamingEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java index 19ab3b5ff05..c7f077c74e7 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java @@ -30,21 +30,24 @@ public final class GenaiVertexV1beta1InteractionStreamingEvent extends com.google.api.client.json.GenericJson { /** - * The content block delta data, used for content.delta events. + * The content block delta data, used for content.delta events. Legacy content-based streaming + * event, used when steps are disabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1ContentDelta contentDelta; /** - * The content block start data, used for content.start events. + * The content block start data, used for content.start events. Legacy content-based streaming + * event, used when steps are disabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1ContentStart contentStart; /** - * The content block stop data, used for content.stop events. + * The content block stop data, used for content.stop events. Legacy content-based streaming + * event, used when steps are disabled. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,28 +68,30 @@ public final class GenaiVertexV1beta1InteractionStreamingEvent extends com.googl private java.lang.String eventId; /** - * The interaction data, used for interaction.complete events. + * The interaction data, used for interaction.complete events. Legacy event, used when steps are + * disabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1InteractionCompleteEvent interactionCompleteEvent; /** - * The interaction data, used for interaction.completed events. + * The interaction data, used for interaction.completed events. Used when steps are enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1InteractionCompletedSseEvent interactionCompletedEvent; /** - * The interaction data, used for interaction.created events. + * The interaction data, used for interaction.created events. Used when steps are enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1InteractionCreatedSseEvent interactionCreatedEvent; /** - * The interaction data, used for interaction.start events. + * The interaction data, used for interaction.start events. Legacy event, used when steps are + * disabled. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,28 +112,32 @@ public final class GenaiVertexV1beta1InteractionStreamingEvent extends com.googl private GenaiVertexV1beta1StreamMetadata metadata; /** - * The step delta data, used for step.delta events. + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1StepDelta stepDelta; /** - * The step start data, used for step.start events. + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1StepStart stepStart; /** - * The step stop data, used for step.stop events. + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1StepStop stepStop; /** - * The content block delta data, used for content.delta events. + * The content block delta data, used for content.delta events. Legacy content-based streaming + * event, used when steps are disabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1ContentDelta getContentDelta() { @@ -136,7 +145,8 @@ public GenaiVertexV1beta1ContentDelta getContentDelta() { } /** - * The content block delta data, used for content.delta events. + * The content block delta data, used for content.delta events. Legacy content-based streaming + * event, used when steps are disabled. * @param contentDelta contentDelta or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setContentDelta(GenaiVertexV1beta1ContentDelta contentDelta) { @@ -145,7 +155,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setContentDelta(GenaiVertexV1 } /** - * The content block start data, used for content.start events. + * The content block start data, used for content.start events. Legacy content-based streaming + * event, used when steps are disabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1ContentStart getContentStart() { @@ -153,7 +164,8 @@ public GenaiVertexV1beta1ContentStart getContentStart() { } /** - * The content block start data, used for content.start events. + * The content block start data, used for content.start events. Legacy content-based streaming + * event, used when steps are disabled. * @param contentStart contentStart or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setContentStart(GenaiVertexV1beta1ContentStart contentStart) { @@ -162,7 +174,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setContentStart(GenaiVertexV1 } /** - * The content block stop data, used for content.stop events. + * The content block stop data, used for content.stop events. Legacy content-based streaming + * event, used when steps are disabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1ContentStop getContentStop() { @@ -170,7 +183,8 @@ public GenaiVertexV1beta1ContentStop getContentStop() { } /** - * The content block stop data, used for content.stop events. + * The content block stop data, used for content.stop events. Legacy content-based streaming + * event, used when steps are disabled. * @param contentStop contentStop or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setContentStop(GenaiVertexV1beta1ContentStop contentStop) { @@ -213,7 +227,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setEventId(java.lang.String e } /** - * The interaction data, used for interaction.complete events. + * The interaction data, used for interaction.complete events. Legacy event, used when steps are + * disabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1InteractionCompleteEvent getInteractionCompleteEvent() { @@ -221,7 +236,8 @@ public GenaiVertexV1beta1InteractionCompleteEvent getInteractionCompleteEvent() } /** - * The interaction data, used for interaction.complete events. + * The interaction data, used for interaction.complete events. Legacy event, used when steps are + * disabled. * @param interactionCompleteEvent interactionCompleteEvent or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCompleteEvent(GenaiVertexV1beta1InteractionCompleteEvent interactionCompleteEvent) { @@ -230,7 +246,7 @@ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCompleteEvent(G } /** - * The interaction data, used for interaction.completed events. + * The interaction data, used for interaction.completed events. Used when steps are enabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1InteractionCompletedSseEvent getInteractionCompletedEvent() { @@ -238,7 +254,7 @@ public GenaiVertexV1beta1InteractionCompletedSseEvent getInteractionCompletedEve } /** - * The interaction data, used for interaction.completed events. + * The interaction data, used for interaction.completed events. Used when steps are enabled. * @param interactionCompletedEvent interactionCompletedEvent or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCompletedEvent(GenaiVertexV1beta1InteractionCompletedSseEvent interactionCompletedEvent) { @@ -247,7 +263,7 @@ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCompletedEvent( } /** - * The interaction data, used for interaction.created events. + * The interaction data, used for interaction.created events. Used when steps are enabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1InteractionCreatedSseEvent getInteractionCreatedEvent() { @@ -255,7 +271,7 @@ public GenaiVertexV1beta1InteractionCreatedSseEvent getInteractionCreatedEvent() } /** - * The interaction data, used for interaction.created events. + * The interaction data, used for interaction.created events. Used when steps are enabled. * @param interactionCreatedEvent interactionCreatedEvent or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCreatedEvent(GenaiVertexV1beta1InteractionCreatedSseEvent interactionCreatedEvent) { @@ -264,7 +280,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionCreatedEvent(Ge } /** - * The interaction data, used for interaction.start events. + * The interaction data, used for interaction.start events. Legacy event, used when steps are + * disabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1InteractionStartEvent getInteractionStartEvent() { @@ -272,7 +289,8 @@ public GenaiVertexV1beta1InteractionStartEvent getInteractionStartEvent() { } /** - * The interaction data, used for interaction.start events. + * The interaction data, used for interaction.start events. Legacy event, used when steps are + * disabled. * @param interactionStartEvent interactionStartEvent or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setInteractionStartEvent(GenaiVertexV1beta1InteractionStartEvent interactionStartEvent) { @@ -315,7 +333,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setMetadata(GenaiVertexV1beta } /** - * The step delta data, used for step.delta events. + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1StepDelta getStepDelta() { @@ -323,7 +342,8 @@ public GenaiVertexV1beta1StepDelta getStepDelta() { } /** - * The step delta data, used for step.delta events. + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. * @param stepDelta stepDelta or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setStepDelta(GenaiVertexV1beta1StepDelta stepDelta) { @@ -332,7 +352,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setStepDelta(GenaiVertexV1bet } /** - * The step start data, used for step.start events. + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1StepStart getStepStart() { @@ -340,7 +361,8 @@ public GenaiVertexV1beta1StepStart getStepStart() { } /** - * The step start data, used for step.start events. + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. * @param stepStart stepStart or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setStepStart(GenaiVertexV1beta1StepStart stepStart) { @@ -349,7 +371,8 @@ public GenaiVertexV1beta1InteractionStreamingEvent setStepStart(GenaiVertexV1bet } /** - * The step stop data, used for step.stop events. + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. * @return value or {@code null} for none */ public GenaiVertexV1beta1StepStop getStepStop() { @@ -357,7 +380,8 @@ public GenaiVertexV1beta1StepStop getStepStop() { } /** - * The step stop data, used for step.stop events. + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. * @param stepStop stepStop or {@code null} for none */ public GenaiVertexV1beta1InteractionStreamingEvent setStepStop(GenaiVertexV1beta1StepStop stepStop) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1LocalEnvironmentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1LocalEnvironmentConfig.java new file mode 100644 index 00000000000..05df6c21be7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1LocalEnvironmentConfig.java @@ -0,0 +1,50 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Configuration for an environment that lives on the client connection rather than in a server- + * managed sandbox. When set (via Interaction.local_environment), the agent's filesystem and shell + * are treated as living on the client: the agent's built-in environment operations (e.g. + * reading/listing/editing files and running commands) are suspended on the server and yielded back + * to the client to execute, with their results returned on a subsequent turn. This is mutually + * exclusive with a server-managed `EnvironmentConfig` (remote_environment), since the environment + * is either on the client or in a server sandbox, never both. This governs only the agent's built- + * in environment. Client-declared function tools are always executed on the client regardless of + * this field. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class 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 observabilityBuckets; /** - * Output only. The lifecycle state of the scope. See `State` for the semantics of each value. + * Output only. The lifecycle state of the scope. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * Optional. User provided display name of the AgentAnomalyDetectionScope. + * Optional. User-provided display name of the AgentAnomalyDetectionScope. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -76,7 +76,7 @@ public java.lang.String getDisplayName() { } /** - * Optional. User provided display name of the AgentAnomalyDetectionScope. + * Optional. User-provided display name of the AgentAnomalyDetectionScope. * @param displayName displayName or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setDisplayName(java.lang.String displayName) { @@ -85,7 +85,7 @@ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setDisplayName(jav } /** - * 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}`. * @return value or {@code null} for none */ @@ -94,7 +94,7 @@ public java.util.List getLogBuckets() { } /** - * 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}`. * @param logBuckets logBuckets or {@code null} for none */ @@ -123,7 +123,7 @@ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setName(java.lang. } /** - * 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}`. * @return value or {@code null} for none */ @@ -132,7 +132,7 @@ public java.util.List getObservabilityBuckets() { } /** - * 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}`. * @param observabilityBuckets observabilityBuckets or {@code null} for none */ @@ -142,7 +142,7 @@ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setObservabilityBu } /** - * Output only. The lifecycle state of the scope. See `State` for the semantics of each value. + * Output only. The lifecycle state of the scope. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -150,7 +150,7 @@ public java.lang.String getState() { } /** - * Output only. The lifecycle state of the scope. See `State` for the semantics of each value. + * Output only. The lifecycle state of the scope. * @param state state or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setState(java.lang.String state) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java index e6fbb98fd92..e0bdbc54171 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java @@ -45,7 +45,8 @@ public final class GoogleCloudAiplatformV1beta1AgentResource extends com.google. private java.lang.String agentType; /** - * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * Output only. The Google Cloud location (region) of the agent resource (for example, `us- + * central1`). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +89,8 @@ public GoogleCloudAiplatformV1beta1AgentResource setAgentType(java.lang.String a } /** - * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * Output only. The Google Cloud location (region) of the agent resource (for example, `us- + * central1`). * @return value or {@code null} for none */ public java.lang.String getLocation() { @@ -96,7 +98,8 @@ public java.lang.String getLocation() { } /** - * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * Output only. The Google Cloud location (region) of the agent resource (for example, `us- + * central1`). * @param location location or {@code null} for none */ public GoogleCloudAiplatformV1beta1AgentResource setLocation(java.lang.String location) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java index 17410de4466..07f0ded4203 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Response containing aggregated AnalyzedSession statistics, grouped by MonitoredAgent. + * Contains aggregated AnalyzedSession statistics, grouped by 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: 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 detectorIds; /** - * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each - * session is counted in exactly one bucket -- the highest severity that any of its detectors - * reached -- so summing `sessions_count` across all populated entries in a `severities` map - * equals the total anomalous session count for that scope (per-agent or view summary). Distinct - * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one - * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and - * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer - * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- - * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count - * across all anomalous active agents in scope (not page-scoped). On per-agent entries within - * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- - * scoped to match the existing summary semantics on that API. + * Output only. The number of distinct sessions whose maximum severity equals `severity_level`. + * Each session is counted in exactly one bucket (its highest severity). Scope depends on where + * this appears: a global count on `AggregateAnalyzedSessionsResponse.summary`, per-agent on + * `agent_aggregates` entries, and page-scoped on `ListAnalyzedSessionsResponse`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,18 +71,10 @@ public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setDetectorIds } /** - * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each - * session is counted in exactly one bucket -- the highest severity that any of its detectors - * reached -- so summing `sessions_count` across all populated entries in a `severities` map - * equals the total anomalous session count for that scope (per-agent or view summary). Distinct - * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one - * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and - * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer - * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- - * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count - * across all anomalous active agents in scope (not page-scoped). On per-agent entries within - * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- - * scoped to match the existing summary semantics on that API. + * Output only. The number of distinct sessions whose maximum severity equals `severity_level`. + * Each session is counted in exactly one bucket (its highest severity). Scope depends on where + * this appears: a global count on `AggregateAnalyzedSessionsResponse.summary`, per-agent on + * `agent_aggregates` entries, and page-scoped on `ListAnalyzedSessionsResponse`. * @return value or {@code null} for none */ public java.lang.Integer getSessionsCount() { @@ -98,18 +82,10 @@ public java.lang.Integer getSessionsCount() { } /** - * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each - * session is counted in exactly one bucket -- the highest severity that any of its detectors - * reached -- so summing `sessions_count` across all populated entries in a `severities` map - * equals the total anomalous session count for that scope (per-agent or view summary). Distinct - * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one - * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and - * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer - * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- - * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count - * across all anomalous active agents in scope (not page-scoped). On per-agent entries within - * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- - * scoped to match the existing summary semantics on that API. + * Output only. The number of distinct sessions whose maximum severity equals `severity_level`. + * Each session is counted in exactly one bucket (its highest severity). Scope depends on where + * this appears: a global count on `AggregateAnalyzedSessionsResponse.summary`, per-agent on + * `agent_aggregates` entries, and page-scoped on `ListAnalyzedSessionsResponse`. * @param sessionsCount sessionsCount or {@code null} for none */ public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setSessionsCount(java.lang.Integer sessionsCount) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java index 756e3cbbe04..3420e555d7f 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Detailed assessment for an analyzed session. + * Contains the detailed assessment for an analyzed 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/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 + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1FeedbackContext extends com.google.api.client.json.GenericJson { + + /** + * Optional. The session events from the originating session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contextEvents; + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbac + * kContext` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The session events from the originating session. + * @return value or {@code null} for none + */ + public java.util.List getContextEvents() { + return contextEvents; + } + + /** + * Optional. The session events from the originating session. + * @param contextEvents contextEvents or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackContext setContextEvents(java.util.List contextEvents) { + this.contextEvents = contextEvents; + return this; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbac + * kContext` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}/feedbac + * kContext` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackContext setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1FeedbackContext set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1FeedbackContext) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1FeedbackContext clone() { + return (GoogleCloudAiplatformV1beta1FeedbackContext) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackEntry.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackEntry.java new file mode 100644 index 00000000000..5f6da0d54c5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1FeedbackEntry.java @@ -0,0 +1,315 @@ +/* + * 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; + +/** + * FeedbackEntry is a resource that represents a user's feedback on a conversation with an 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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1FeedbackEntry extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the entry was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Additional key-value metadata associated with the feedback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map customMetadata; + + /** + * Required. The ID of the event within the session that the feedback relates to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackLabels; + + /** + * Optional. Qualitative free-form comments provided by the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackText; + + /** + * Required. The coarse-grained type of feedback provided by the user. Must be set to a value + * other than `FEEDBACK_TYPE_UNSPECIFIED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackType; + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The ID of the session that the feedback relates to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * Optional. The surface that the feedback originated from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. The time at which the entry was most recently updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of + * this field (for example whether it is an opaque token, a hashed value, or a user-visible + * identifier) are determined by the calling application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The time at which the entry was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which the entry was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Additional key-value metadata associated with the feedback. + * @return value or {@code null} for none + */ + public java.util.Map getCustomMetadata() { + return customMetadata; + } + + /** + * Optional. Additional key-value metadata associated with the feedback. + * @param customMetadata customMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setCustomMetadata(java.util.Map customMetadata) { + this.customMetadata = customMetadata; + return this; + } + + /** + * Required. The ID of the event within the session that the feedback relates to. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * Required. The ID of the event within the session that the feedback relates to. + * @param eventId eventId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getFeedbackLabels() { + return feedbackLabels; + } + + /** + * @param feedbackLabels feedbackLabels or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setFeedbackLabels(java.util.List feedbackLabels) { + this.feedbackLabels = feedbackLabels; + return this; + } + + /** + * Optional. Qualitative free-form comments provided by the user. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackText() { + return feedbackText; + } + + /** + * Optional. Qualitative free-form comments provided by the user. + * @param feedbackText feedbackText or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setFeedbackText(java.lang.String feedbackText) { + this.feedbackText = feedbackText; + return this; + } + + /** + * Required. The coarse-grained type of feedback provided by the user. Must be set to a value + * other than `FEEDBACK_TYPE_UNSPECIFIED`. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackType() { + return feedbackType; + } + + /** + * Required. The coarse-grained type of feedback provided by the user. Must be set to a value + * other than `FEEDBACK_TYPE_UNSPECIFIED`. + * @param feedbackType feedbackType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setFeedbackType(java.lang.String feedbackType) { + this.feedbackType = feedbackType; + return this; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name. Assigned by the server on create. Format: `projects/{project}/lo + * cations/{location}/reasoningEngines/{reasoning_engine}/feedbackEntries/{feedback_entry}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The ID of the session that the feedback relates to. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Required. The ID of the session that the feedback relates to. + * @param sessionId sessionId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * Optional. The surface that the feedback originated from. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. The surface that the feedback originated from. + * @param source source or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. The time at which the entry was most recently updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time at which the entry was most recently updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of + * this field (for example whether it is an opaque token, a hashed value, or a user-visible + * identifier) are determined by the calling application. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Optional. A caller-supplied identifier for the user who provided the feedback. The semantics of + * this field (for example whether it is an opaque token, a hashed value, or a user-visible + * identifier) are determined by the calling application. + * @param userId userId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1FeedbackEntry setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1FeedbackEntry set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1FeedbackEntry) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1FeedbackEntry clone() { + return (GoogleCloudAiplatformV1beta1FeedbackEntry) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java index 32f45ba56fe..ef7b56a0c57 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java @@ -50,9 +50,8 @@ public final class GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse exte private java.lang.String nextPageToken; /** - * Summary statistics for the sessions returned on the current page. This is computed across the - * current page only (not the full result set) and is populated on every page. Callers that need - * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * Summary statistics computed across the sessions on the current page only. For statistics across + * the entire result set, use AggregateAnalyzedSessions. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,9 +92,8 @@ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse setNextPageToken } /** - * Summary statistics for the sessions returned on the current page. This is computed across the - * current page only (not the full result set) and is populated on every page. Callers that need - * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * Summary statistics computed across the sessions on the current page only. For statistics across + * the entire result set, use AggregateAnalyzedSessions. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary getSummary() { @@ -103,9 +101,8 @@ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary getSu } /** - * Summary statistics for the sessions returned on the current page. This is computed across the - * current page only (not the full result set) and is populated on every page. Callers that need - * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * Summary statistics computed across the sessions on the current page only. For statistics across + * the entire result set, use AggregateAnalyzedSessions. * @param summary summary or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse setSummary(GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary summary) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java index 0aba3c097a1..93c32ffb8e9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java @@ -30,13 +30,9 @@ public final class GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary extends com.google.api.client.json.GenericJson { /** - * Output only. The number of distinct agents matching the request scope that have at least one - * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard - * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row - * count. The denominator for an "anomalous active agents" scorecard pairs this with - * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On - * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, - * not per-agent). + * Output only. The number of distinct agents in the request scope with at least one anomalous + * session in the time window. On `AggregateAnalyzedSessionsResponse.summary` this is a global + * count; it is not populated on `ListAnalyzedSessionsResponse.summary`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,8 +46,8 @@ public final class GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewS private java.lang.Integer anomalousSessionsCount; /** - * Output only. The number of distinct sessions in the time window that were scanned by Stage 2 - * LLM judges. + * Output only. The number of distinct sessions in the time window that were scanned by the LLM + * judge. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,13 +76,9 @@ public final class GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewS private java.lang.Integer totalSessionsCount; /** - * Output only. The number of distinct agents matching the request scope that have at least one - * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard - * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row - * count. The denominator for an "anomalous active agents" scorecard pairs this with - * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On - * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, - * not per-agent). + * Output only. The number of distinct agents in the request scope with at least one anomalous + * session in the time window. On `AggregateAnalyzedSessionsResponse.summary` this is a global + * count; it is not populated on `ListAnalyzedSessionsResponse.summary`. * @return value or {@code null} for none */ public java.lang.Integer getAnomalousAgentsCount() { @@ -94,13 +86,9 @@ public java.lang.Integer getAnomalousAgentsCount() { } /** - * Output only. The number of distinct agents matching the request scope that have at least one - * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard - * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row - * count. The denominator for an "anomalous active agents" scorecard pairs this with - * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On - * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, - * not per-agent). + * Output only. The number of distinct agents in the request scope with at least one anomalous + * session in the time window. On `AggregateAnalyzedSessionsResponse.summary` this is a global + * count; it is not populated on `ListAnalyzedSessionsResponse.summary`. * @param anomalousAgentsCount anomalousAgentsCount or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setAnomalousAgentsCount(java.lang.Integer anomalousAgentsCount) { @@ -126,8 +114,8 @@ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setAn } /** - * Output only. The number of distinct sessions in the time window that were scanned by Stage 2 - * LLM judges. + * Output only. The number of distinct sessions in the time window that were scanned by the LLM + * judge. * @return value or {@code null} for none */ public java.lang.Integer getLlmScannedSessionsCount() { @@ -135,8 +123,8 @@ public java.lang.Integer getLlmScannedSessionsCount() { } /** - * Output only. The number of distinct sessions in the time window that were scanned by Stage 2 - * LLM judges. + * Output only. The number of distinct sessions in the time window that were scanned by the LLM + * judge. * @param llmScannedSessionsCount llmScannedSessionsCount or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setLlmScannedSessionsCount(java.lang.Integer llmScannedSessionsCount) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse.java new file mode 100644 index 00000000000..30b64ced0df --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse.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; + +/** + * Response message for ListFeedbackEntries. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse extends com.google.api.client.json.GenericJson { + + /** + * The page of FeedbackEntries matching the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackEntries; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1FeedbackEntry used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1FeedbackEntry.class); + } + + /** + * A token to retrieve the next page. Absence of this field indicates there are no subsequent + * pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The page of FeedbackEntries matching the request. + * @return value or {@code null} for none + */ + public java.util.List getFeedbackEntries() { + return feedbackEntries; + } + + /** + * The page of FeedbackEntries matching the request. + * @param feedbackEntries feedbackEntries or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse setFeedbackEntries(java.util.List feedbackEntries) { + this.feedbackEntries = feedbackEntries; + return this; + } + + /** + * A token to retrieve the next page. Absence of this field indicates there are no subsequent + * pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page. Absence of this field indicates there are no subsequent + * pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse clone() { + return (GoogleCloudAiplatformV1beta1ListFeedbackEntriesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java index 2d8a6310ecd..c343c28ae28 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java @@ -45,9 +45,7 @@ public final class GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse exten private java.lang.String nextPageToken; /** - * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is - * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with - * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * The total number of MonitoredAgents matching the request, after any `filter` is applied. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -90,9 +88,7 @@ public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse setNextPageToken( } /** - * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is - * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with - * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * The total number of MonitoredAgents matching the request, after any `filter` is applied. * @return value or {@code null} for none */ public java.lang.Integer getTotalSize() { @@ -100,9 +96,7 @@ public java.lang.Integer getTotalSize() { } /** - * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is - * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with - * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * The total number of MonitoredAgents matching the request, after any `filter` is applied. * @param totalSize totalSize or {@code null} for none */ public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse setTotalSize(java.lang.Integer totalSize) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java index f68dacce215..192b41085ed 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * A monitored agent in a specific Location. + * Represents a monitored agent in a specific Location. * *

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 @@ com.google.apis google-api-services-aiplatform - v1beta1-rev20260703-2.0.0 - Agent Platform API v1beta1-rev20260703-2.0.0 + v1beta1-rev20260704-2.0.0 + Agent Platform API v1beta1-rev20260704-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index f57c5ee656f..aa9662d3958 100644 --- a/clients/google-api-services-aiplatform/v1beta1/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260703-2.0.0 + v1beta1-rev20260704-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260703-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260704-2.0.0' } ```