From 4e40d93b1788aeeb97b358b6b9aca64784e20a23 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sat, 14 Feb 2026 17:00:39 -0800
Subject: [PATCH] chore: regenerate aiplatform client
---
.../v1/2.0.0/README.md | 4 +-
.../services/aiplatform/v1/Aiplatform.java | 630 +++++++++++++++--
...iplatformV1ComputationBasedMetricSpec.java | 90 +++
...leCloudAiplatformV1EvaluationInstance.java | 30 +-
...atformV1EvaluationInstanceAgentConfig.java | 117 ++-
...platformV1EvaluationInstanceAgentData.java | 90 ++-
...EvaluationInstanceAgentDataAgentEvent.java | 168 +++++
...tionInstanceAgentDataConversationTurn.java | 123 ++++
...ormV1EvaluationInstanceAgentDataTools.java | 2 +-
...ogleCloudAiplatformV1EvaluationPrompt.java | 3 +-
...gleCloudAiplatformV1EvaluationRequest.java | 12 +-
...eCloudAiplatformV1EvaluationRunMetric.java | 24 +
...onRunMetricComputationBasedMetricSpec.java | 90 +++
...oudAiplatformV1ListTuningJobsResponse.java | 18 +-
.../model/GoogleCloudAiplatformV1Metric.java | 24 +
...CloudAiplatformV1PurgeMemoriesRequest.java | 45 ++
...leCloudAiplatformV1RagManagedDbConfig.java | 78 +-
...udAiplatformV1RagManagedDbConfigBasic.java | 3 +-
...latformV1RagManagedDbConfigServerless.java | 42 ++
...AiplatformV1RagManagedDbConfigSpanner.java | 117 +++
...udAiplatformV1RebaseTunedModelRequest.java | 42 +-
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../aiplatform/v1beta1/Aiplatform.java | 669 ++++++++++++++++--
...ogleCloudAiplatformV1beta1AgentConfig.java | 204 ++++++
...GoogleCloudAiplatformV1beta1AgentData.java | 102 +++
...oogleCloudAiplatformV1beta1AgentEvent.java | 171 +++++
...oudAiplatformV1beta1CandidateResponse.java | 30 +
...formV1beta1ComputationBasedMetricSpec.java | 90 +++
...loudAiplatformV1beta1ConversationTurn.java | 123 ++++
...udAiplatformV1beta1EvaluationInstance.java | 30 +-
...mV1beta1EvaluationInstanceAgentConfig.java | 117 ++-
...ormV1beta1EvaluationInstanceAgentData.java | 90 ++-
...EvaluationInstanceAgentDataAgentEvent.java | 168 +++++
...tionInstanceAgentDataConversationTurn.java | 123 ++++
...beta1EvaluationInstanceAgentDataTools.java | 2 +-
...loudAiplatformV1beta1EvaluationPrompt.java | 30 +-
...oudAiplatformV1beta1EvaluationRequest.java | 12 +-
...dAiplatformV1beta1EvaluationRunMetric.java | 24 +
...onRunMetricComputationBasedMetricSpec.java | 90 +++
...platformV1beta1ListTuningJobsResponse.java | 18 +-
.../GoogleCloudAiplatformV1beta1Metric.java | 24 +
...iplatformV1beta1OptimizePromptRequest.java | 12 +-
...platformV1beta1OptimizePromptResponse.java | 6 +-
...AiplatformV1beta1PurgeMemoriesRequest.java | 45 ++
...udAiplatformV1beta1RagManagedDbConfig.java | 78 +-
...latformV1beta1RagManagedDbConfigBasic.java | 3 +-
...rmV1beta1RagManagedDbConfigServerless.java | 42 ++
...tformV1beta1RagManagedDbConfigSpanner.java | 117 +++
...latformV1beta1RebaseTunedModelRequest.java | 42 +-
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
53 files changed, 3956 insertions(+), 278 deletions(-)
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ComputationBasedMetricSpec.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstanceAgentDataAgentEvent.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstanceAgentDataConversationTurn.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigServerless.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigSpanner.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentConfig.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentData.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentEvent.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ConversationTurn.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataAgentEvent.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataConversationTurn.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner.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 b9d91ff410e..3ac10e8bf86 100644
--- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md
+++ b/clients/google-api-services-aiplatform/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists reasoning engines in a location. * @@ -115458,6 +115652,153 @@ public Query set(String parameterName, Object value) { return (Query) super.set(parameterName, value); } } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "reasoningEngines.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AiplatformRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } /** * Streams queries using a reasoning engine. * @@ -115598,6 +115939,181 @@ public StreamQuery set(String parameterName, Object value) { return (StreamQuery) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "reasoningEngines.testIamPermissions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); + initialize(result); + return result; + } + + public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1ComputationBasedMetricSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1EvaluationInstanceAgentDataAgentEvent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tools that were active/available to the agent at the time of this event. + * This overrides the `AgentConfig.tools` if set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1EvaluationInstanceAgentDataConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of events that occurred during this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see: diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationPrompt.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationPrompt.java index d36db055428..6f674e780e4 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationPrompt.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationPrompt.java @@ -17,7 +17,8 @@ package com.google.api.services.aiplatform.v1.model; /** - * Prompt to be evaluated. + * Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for + * agent evaluations. * *
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 Vertex AI API. For a detailed explanation see: diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRequest.java index ef0991f6011..5b894a5f2f9 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRequest.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRequest.java @@ -17,7 +17,11 @@ package com.google.api.services.aiplatform.v1.model; /** - * Single evaluation request. + * A single evaluation request supporting input for both single-turn model generation and multi-turn + * agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or + * AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains + * `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at + * least one of the `candidate_responses` must contain `agent_data`. * *
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 Vertex AI API. For a detailed explanation see: @@ -50,7 +54,7 @@ public final class GoogleCloudAiplatformV1EvaluationRequest extends com.google.a private GoogleCloudAiplatformV1CandidateResponse goldenResponse; /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,7 +103,7 @@ public GoogleCloudAiplatformV1EvaluationRequest setGoldenResponse(GoogleCloudAip } /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1EvaluationPrompt getPrompt() { @@ -107,7 +111,7 @@ public GoogleCloudAiplatformV1EvaluationPrompt getPrompt() { } /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * @param prompt prompt or {@code null} for none */ public GoogleCloudAiplatformV1EvaluationRequest setPrompt(GoogleCloudAiplatformV1EvaluationPrompt prompt) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetric.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetric.java index 16d0279d8a0..608373bb2a3 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetric.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetric.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1EvaluationRunMetric extends com.google.api.client.json.GenericJson { + /** + * Spec for a computation based metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec computationBasedMetricSpec; + /** * Spec for an LLM based metric. * The value may be {@code null}. @@ -64,6 +71,23 @@ public final class GoogleCloudAiplatformV1EvaluationRunMetric extends com.google @com.google.api.client.util.Key private GoogleCloudAiplatformV1EvaluationRunMetricRubricBasedMetricSpec rubricBasedMetricSpec; + /** + * Spec for a computation based metric. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec getComputationBasedMetricSpec() { + return computationBasedMetricSpec; + } + + /** + * Spec for a computation based metric. + * @param computationBasedMetricSpec computationBasedMetricSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluationRunMetric setComputationBasedMetricSpec(GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec computationBasedMetricSpec) { + this.computationBasedMetricSpec = computationBasedMetricSpec; + return this; + } + /** * Spec for an LLM based metric. * @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/GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.java new file mode 100644 index 00000000000..d8d6754b249 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Specification for a computation based metric. + * + *
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 Vertex AI 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 GoogleCloudAiplatformV1EvaluationRunMetricComputationBasedMetricSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see: diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigServerless.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigServerless.java new file mode 100644 index 00000000000..0315a7e728d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigServerless.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Message to configure the serverless mode offered by RAG Engine. + * + *
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 Vertex AI 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 GoogleCloudAiplatformV1RagManagedDbConfigServerless extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1RagManagedDbConfigServerless set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1RagManagedDbConfigServerless) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1RagManagedDbConfigServerless clone() { + return (GoogleCloudAiplatformV1RagManagedDbConfigServerless) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigSpanner.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigSpanner.java new file mode 100644 index 00000000000..26fdab36d61 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RagManagedDbConfigSpanner.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Message to configure the Spanner database used by RagManagedDb. + * + *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 Vertex AI 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 GoogleCloudAiplatformV1RagManagedDbConfigSpanner extends com.google.api.client.json.GenericJson { + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1RagManagedDbConfigBasic basic; + + /** + * Sets the RagManagedDb to the Scaled tier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1RagManagedDbConfigScaled scaled; + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned unprovisioned; + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigBasic getBasic() { + return basic; + } + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * @param basic basic or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigSpanner setBasic(GoogleCloudAiplatformV1RagManagedDbConfigBasic basic) { + this.basic = basic; + return this; + } + + /** + * Sets the RagManagedDb to the Scaled tier. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigScaled getScaled() { + return scaled; + } + + /** + * Sets the RagManagedDb to the Scaled tier. + * @param scaled scaled or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigSpanner setScaled(GoogleCloudAiplatformV1RagManagedDbConfigScaled scaled) { + this.scaled = scaled; + return this; + } + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned getUnprovisioned() { + return unprovisioned; + } + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * @param unprovisioned unprovisioned or {@code null} for none + */ + public GoogleCloudAiplatformV1RagManagedDbConfigSpanner setUnprovisioned(GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned unprovisioned) { + this.unprovisioned = unprovisioned; + return this; + } + + @Override + public GoogleCloudAiplatformV1RagManagedDbConfigSpanner set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1RagManagedDbConfigSpanner) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1RagManagedDbConfigSpanner clone() { + return (GoogleCloudAiplatformV1RagManagedDbConfigSpanner) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RebaseTunedModelRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RebaseTunedModelRequest.java index 347d3bcf3a4..f9c2b41110e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RebaseTunedModelRequest.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1RebaseTunedModelRequest.java @@ -30,38 +30,38 @@ public final class GoogleCloudAiplatformV1RebaseTunedModelRequest extends com.google.api.client.json.GenericJson { /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1GcsDestination artifactDestination; /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean deployToSameEndpoint; /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1TunedModelRef tunedModelRef; /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1TuningJob tuningJob; /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1GcsDestination getArtifactDestination() { @@ -69,7 +69,7 @@ public GoogleCloudAiplatformV1GcsDestination getArtifactDestination() { } /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * @param artifactDestination artifactDestination or {@code null} for none */ public GoogleCloudAiplatformV1RebaseTunedModelRequest setArtifactDestination(GoogleCloudAiplatformV1GcsDestination artifactDestination) { @@ -78,9 +78,10 @@ public GoogleCloudAiplatformV1RebaseTunedModelRequest setArtifactDestination(Goo } /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * @return value or {@code null} for none */ public java.lang.Boolean getDeployToSameEndpoint() { @@ -88,9 +89,10 @@ public java.lang.Boolean getDeployToSameEndpoint() { } /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * @param deployToSameEndpoint deployToSameEndpoint or {@code null} for none */ public GoogleCloudAiplatformV1RebaseTunedModelRequest setDeployToSameEndpoint(java.lang.Boolean deployToSameEndpoint) { @@ -99,7 +101,7 @@ public GoogleCloudAiplatformV1RebaseTunedModelRequest setDeployToSameEndpoint(ja } /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1TunedModelRef getTunedModelRef() { @@ -107,7 +109,7 @@ public GoogleCloudAiplatformV1TunedModelRef getTunedModelRef() { } /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * @param tunedModelRef tunedModelRef or {@code null} for none */ public GoogleCloudAiplatformV1RebaseTunedModelRequest setTunedModelRef(GoogleCloudAiplatformV1TunedModelRef tunedModelRef) { @@ -116,8 +118,7 @@ public GoogleCloudAiplatformV1RebaseTunedModelRequest setTunedModelRef(GoogleClo } /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1TuningJob getTuningJob() { @@ -125,8 +126,7 @@ public GoogleCloudAiplatformV1TuningJob getTuningJob() { } /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * @param tuningJob tuningJob or {@code null} for none */ public GoogleCloudAiplatformV1RebaseTunedModelRequest setTuningJob(GoogleCloudAiplatformV1TuningJob tuningJob) { 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 3efa48d7895..f2f75cfe1e6 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 @@{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists reasoning engines in a location. * @@ -143036,6 +143253,153 @@ public Query set(String parameterName, Object value) { return (Query) super.set(parameterName, value); } } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "reasoningEngines.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AiplatformRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } /** * Streams queries using a reasoning engine. * @@ -143176,6 +143540,181 @@ public StreamQuery set(String parameterName, Object value) { return (StreamQuery) super.set(parameterName, value); } } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "reasoningEngines.testIamPermissions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); + initialize(result); + return result; + } + + public class TestIamPermissions extends AiplatformRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as + * `*` or `storage.*`) are not allowed. For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1AgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Unique identifier of the agent. This ID is used to refer to this agent, e.g., in + * AgentEvent.author, or in the `sub_agents` field. It must be unique within the `agents` map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** + * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent", "ToolUseAgent"). + * Useful for the autorater to understand the expected behavior of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentType; + + /** + * Optional. A high-level description of the agent's role and responsibilities. Critical for + * evaluating if the agent is routing tasks correctly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Provides instructions for the LLM model, guiding the agent's behavior. Can be static + * or dynamic. Dynamic instructions can contain placeholders like {variable_name} that will be + * resolved at runtime using the `AgentEvent.state_delta` field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instruction; + + /** + * Optional. The list of valid agent IDs that this agent can delegate to. This defines the + * directed edges in the multi-agent system graph topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1AgentData extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map containing the static configurations for each agent in the system. Key: + * agent_id (matches the `author` field in events). Value: The static configuration of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1AgentEvent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tools that were active/available to the agent at the time of this event. + * This overrides the `AgentConfig.tools` if set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1ComputationBasedMetricSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1ConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of events that occurred during this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataAgentEvent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tools that were active/available to the agent at the time of this event. + * This overrides the `AgentConfig.tools` if set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Vertex AI 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 GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of events that occurred during this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Vertex AI 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/GoogleCloudAiplatformV1beta1EvaluationPrompt.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationPrompt.java index 1433674a01d..4bb1968166c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationPrompt.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationPrompt.java @@ -17,7 +17,8 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Prompt to be evaluated. + * Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for + * agent evaluations. * *
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 Vertex AI API. For a detailed explanation see: @@ -29,6 +30,14 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1EvaluationPrompt extends com.google.api.client.json.GenericJson { + /** + * Optional. Represents the complete execution trace of a multi-turn conversation, which can + * involve single or multiple agents. This serves as the input context for agent scraping. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentData agentData; + /** * Prompt template data. * The value may be {@code null}. @@ -50,6 +59,25 @@ public final class GoogleCloudAiplatformV1beta1EvaluationPrompt extends com.goog @com.google.api.client.util.Key private java.lang.Object value; + /** + * Optional. Represents the complete execution trace of a multi-turn conversation, which can + * involve single or multiple agents. This serves as the input context for agent scraping. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentData getAgentData() { + return agentData; + } + + /** + * Optional. Represents the complete execution trace of a multi-turn conversation, which can + * involve single or multiple agents. This serves as the input context for agent scraping. + * @param agentData agentData or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationPrompt setAgentData(GoogleCloudAiplatformV1beta1AgentData agentData) { + this.agentData = agentData; + return this; + } + /** * Prompt template data. * @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/GoogleCloudAiplatformV1beta1EvaluationRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRequest.java index fa7ad36ea18..f4d399cd239 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRequest.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRequest.java @@ -17,7 +17,11 @@ package com.google.api.services.aiplatform.v1beta1.model; /** - * Single evaluation request. + * A single evaluation request supporting input for both single-turn model generation and multi-turn + * agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or + * AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains + * `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at + * least one of the `candidate_responses` must contain `agent_data`. * *
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 Vertex AI API. For a detailed explanation see: @@ -50,7 +54,7 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRequest extends com.goo private GoogleCloudAiplatformV1beta1CandidateResponse goldenResponse; /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,7 +103,7 @@ public GoogleCloudAiplatformV1beta1EvaluationRequest setGoldenResponse(GoogleClo } /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1EvaluationPrompt getPrompt() { @@ -107,7 +111,7 @@ public GoogleCloudAiplatformV1beta1EvaluationPrompt getPrompt() { } /** - * Required. The request/prompt to evaluate. + * Optional. The request/prompt to evaluate. * @param prompt prompt or {@code null} for none */ public GoogleCloudAiplatformV1beta1EvaluationRequest setPrompt(GoogleCloudAiplatformV1beta1EvaluationPrompt prompt) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetric.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetric.java index d8728eb14a8..428d3a2aba9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetric.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetric.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1EvaluationRunMetric extends com.google.api.client.json.GenericJson { + /** + * Spec for a computation based metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec computationBasedMetricSpec; + /** * Spec for an LLM based metric. * The value may be {@code null}. @@ -64,6 +71,23 @@ public final class GoogleCloudAiplatformV1beta1EvaluationRunMetric extends com.g @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec rubricBasedMetricSpec; + /** + * Spec for a computation based metric. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec getComputationBasedMetricSpec() { + return computationBasedMetricSpec; + } + + /** + * Spec for a computation based metric. + * @param computationBasedMetricSpec computationBasedMetricSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EvaluationRunMetric setComputationBasedMetricSpec(GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec computationBasedMetricSpec) { + this.computationBasedMetricSpec = computationBasedMetricSpec; + return this; + } + /** * Spec for an LLM based metric. * @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/GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.java new file mode 100644 index 00000000000..2f8a7a83cc4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Specification for a computation based metric. + * + *
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 Vertex AI 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 GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of parameters for the metric, e.g. {"rouge_type": "rougeL"}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Vertex AI 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/GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless.java new file mode 100644 index 00000000000..023a5f86eaf --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Message to configure the serverless mode offered by RAG Engine. + * + *
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 Vertex AI 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 GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless clone() { + return (GoogleCloudAiplatformV1beta1RagManagedDbConfigServerless) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner.java new file mode 100644 index 00000000000..5869db07c2f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Message to configure the Spanner database used by RagManagedDb. + * + *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 Vertex AI 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 GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner extends com.google.api.client.json.GenericJson { + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic basic; + + /** + * Sets the RagManagedDb to the Scaled tier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1RagManagedDbConfigScaled scaled; + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1RagManagedDbConfigUnprovisioned unprovisioned; + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic getBasic() { + return basic; + } + + /** + * Sets the RagManagedDb to the Basic tier. This is the default tier for Spanner mode if not + * explicitly chosen. + * @param basic basic or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner setBasic(GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic basic) { + this.basic = basic; + return this; + } + + /** + * Sets the RagManagedDb to the Scaled tier. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigScaled getScaled() { + return scaled; + } + + /** + * Sets the RagManagedDb to the Scaled tier. + * @param scaled scaled or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner setScaled(GoogleCloudAiplatformV1beta1RagManagedDbConfigScaled scaled) { + this.scaled = scaled; + return this; + } + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigUnprovisioned getUnprovisioned() { + return unprovisioned; + } + + /** + * Sets the RagManagedDb to the Unprovisioned tier. + * @param unprovisioned unprovisioned or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner setUnprovisioned(GoogleCloudAiplatformV1beta1RagManagedDbConfigUnprovisioned unprovisioned) { + this.unprovisioned = unprovisioned; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner clone() { + return (GoogleCloudAiplatformV1beta1RagManagedDbConfigSpanner) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest.java index ea6c96a1d5b..105feaf43f9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest.java @@ -30,38 +30,38 @@ public final class GoogleCloudAiplatformV1beta1RebaseTunedModelRequest extends com.google.api.client.json.GenericJson { /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1GcsDestination artifactDestination; /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean deployToSameEndpoint; /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1TunedModelRef tunedModelRef; /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1TuningJob tuningJob; /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1GcsDestination getArtifactDestination() { @@ -69,7 +69,7 @@ public GoogleCloudAiplatformV1beta1GcsDestination getArtifactDestination() { } /** - * Optional. The Google Cloud Storage location to write the artifacts. + * Optional. The Google Cloud Storage location to write the artifacts to. * @param artifactDestination artifactDestination or {@code null} for none */ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setArtifactDestination(GoogleCloudAiplatformV1beta1GcsDestination artifactDestination) { @@ -78,9 +78,10 @@ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setArtifactDestinatio } /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * @return value or {@code null} for none */ public java.lang.Boolean getDeployToSameEndpoint() { @@ -88,9 +89,10 @@ public java.lang.Boolean getDeployToSameEndpoint() { } /** - * Optional. By default, bison to gemini migration will always create new model/endpoint, but for - * gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this - * Section. + * Optional. By default, rebasing a model creates a new endpoint for the new model. If this flag + * is set to true, the new model will be deployed to the same endpoint as the original model. + * WARNING: If you deploy to the same endpoint, the original model will be un-deployed and + * replaced by the new model. * @param deployToSameEndpoint deployToSameEndpoint or {@code null} for none */ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setDeployToSameEndpoint(java.lang.Boolean deployToSameEndpoint) { @@ -99,7 +101,7 @@ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setDeployToSameEndpoi } /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1TunedModelRef getTunedModelRef() { @@ -107,7 +109,7 @@ public GoogleCloudAiplatformV1beta1TunedModelRef getTunedModelRef() { } /** - * Required. TunedModel reference to retrieve the legacy model information. + * Required. A reference to the tuned model to rebase. * @param tunedModelRef tunedModelRef or {@code null} for none */ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setTunedModelRef(GoogleCloudAiplatformV1beta1TunedModelRef tunedModelRef) { @@ -116,8 +118,7 @@ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setTunedModelRef(Goog } /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * @return value or {@code null} for none */ public GoogleCloudAiplatformV1beta1TuningJob getTuningJob() { @@ -125,8 +126,7 @@ public GoogleCloudAiplatformV1beta1TuningJob getTuningJob() { } /** - * Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning - * configs. + * Optional. The tuning job to be updated. Users can use this field to overwrite tuning configs. * @param tuningJob tuningJob or {@code null} for none */ public GoogleCloudAiplatformV1beta1RebaseTunedModelRequest setTuningJob(GoogleCloudAiplatformV1beta1TuningJob tuningJob) { 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 941bb14a22c..5adc0006f48 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 @@