From 7d5eb4e7e98b25f9e6cde48d80db4f62dd16f829 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Mon, 1 Jun 2026 18:31:15 -0700
Subject: [PATCH] chore: regenerate aiplatform client
---
.../v1/2.0.0/README.md | 4 +-
.../services/aiplatform/v1/Aiplatform.java | 12 +-
...eModelsVisionGenerateVideoExperiments.java | 30 +
...CreateServingProfileOperationMetadata.java | 66 +
...leCloudAiplatformV1PersistentDiskSpec.java | 17 +-
...ntTemplateDefaultContainerEnvironment.java | 24 +
.../v1/model/GoogleCloudAiplatformV1Tool.java | 27 +
...oogleCloudAiplatformV1ToolExaAiSearch.java | 90 +
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../aiplatform/v1beta1/Aiplatform.java | 3044 ++++++++---------
...eModelsVisionGenerateVideoExperiments.java | 30 +
.../GenaiVertexV1beta1ArgumentsDelta.java | 14 +-
.../GenaiVertexV1beta1EnvironmentConfig.java | 111 +
...texV1beta1EnvironmentConfigEgressRule.java | 98 +
...nfigEnvironmentNetworkEgressAllowlist.java | 72 +
...iVertexV1beta1EnvironmentConfigSource.java | 162 +
.../model/GenaiVertexV1beta1Interaction.java | 78 +-
...ertexV1beta1InteractionStreamingEvent.java | 24 +
.../GenaiVertexV1beta1ResponseFormat.java | 21 -
...GenaiVertexV1beta1ServerToolCallDelta.java | 220 ++
...naiVertexV1beta1ServerToolResultDelta.java | 220 ++
.../GenaiVertexV1beta1StepDeltaData.java | 63 +
.../GenaiVertexV1beta1StreamMetadata.java | 63 +
.../GenaiVertexV1beta1UserInputStep.java | 41 +-
.../GoogleCloudAiplatformV1beta1Agent.java | 90 +-
...GoogleCloudAiplatformV1beta1AgentTool.java | 39 +-
...emanticGovernancePolicyEngineRequest.java} | 13 +-
...leCloudAiplatformV1beta1GatewayConfig.java | 219 ++
...udAiplatformV1beta1ListAgentsResponse.java | 18 +-
...istSemanticGovernancePoliciesResponse.java | 93 +
...udAiplatformV1beta1PersistentDiskSpec.java | 17 +-
...udAiplatformV1beta1ProcessDataRequest.java | 114 +
...tformV1beta1ProcessDataRequestVeoSpec.java | 66 +
...ntTemplateDefaultContainerEnvironment.java | 24 +
...atformV1beta1SemanticGovernancePolicy.java | 301 ++
...V1beta1SemanticGovernancePolicyEngine.java | 282 ++
...1beta1SemanticGovernancePolicyMcpTool.java | 96 +
...leCloudAiplatformV1beta1SkillRevision.java | 9 +-
.../GoogleCloudAiplatformV1beta1Tool.java | 27 +
...CloudAiplatformV1beta1ToolExaAiSearch.java | 90 +
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
44 files changed, 4256 insertions(+), 1793 deletions(-)
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CreateServingProfileOperationMetadata.java
create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolExaAiSearch.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEgressRule.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigSource.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ServerToolCallDelta.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ServerToolResultDelta.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java
rename clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/{GenaiVertexV1beta1VideoResponseFormat.java => GoogleCloudAiplatformV1beta1DeprovisionSemanticGovernancePolicyEngineRequest.java} (63%)
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GatewayConfig.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListSemanticGovernancePoliciesResponse.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequest.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicy.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicyMcpTool.java
create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolExaAiSearch.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 a63e3808df1..0ecf6d4cf01 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:
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1CreateServingProfileOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The standard operation metadata for Vertex AI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1GenericOperationMetadata genericMetadata; + + /** + * Output only. The standard operation metadata for Vertex AI. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1GenericOperationMetadata getGenericMetadata() { + return genericMetadata; + } + + /** + * Output only. The standard operation metadata for Vertex AI. + * @param genericMetadata genericMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1CreateServingProfileOperationMetadata setGenericMetadata(GoogleCloudAiplatformV1GenericOperationMetadata genericMetadata) { + this.genericMetadata = genericMetadata; + return this; + } + + @Override + public GoogleCloudAiplatformV1CreateServingProfileOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1CreateServingProfileOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1CreateServingProfileOperationMetadata clone() { + return (GoogleCloudAiplatformV1CreateServingProfileOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1PersistentDiskSpec.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1PersistentDiskSpec.java index 03b0d0e570e..68a2822b991 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1PersistentDiskSpec.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1PersistentDiskSpec.java @@ -17,7 +17,7 @@ package com.google.api.services.aiplatform.v1.model; /** - * Represents the spec of persistent disk options. + * Represents the spec of persistent disk and hyperdisk options. * *This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: @@ -39,7 +39,10 @@ public final class GoogleCloudAiplatformV1PersistentDiskSpec extends com.google. /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,7 +68,10 @@ public GoogleCloudAiplatformV1PersistentDiskSpec setDiskSizeGb(java.lang.Long di /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * @return value or {@code null} for none */ public java.lang.String getDiskType() { @@ -75,7 +81,10 @@ public java.lang.String getDiskType() { /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * @param diskType diskType or {@code null} for none */ public GoogleCloudAiplatformV1PersistentDiskSpec setDiskType(java.lang.String diskType) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.java index 4337330af86..6882243eb62 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.java @@ -36,6 +36,13 @@ public final class GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultConta @com.google.api.client.util.Key private java.lang.String defaultContainerCategory; + /** + * Optional. Resource requests and limits for the default container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements resources; + /** * Required. The category of the default container image. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironm return this; } + /** + * Optional. Resource requests and limits for the default container. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements getResources() { + return resources; + } + + /** + * Optional. Resource requests and limits for the default container. + * @param resources resources or {@code null} for none + */ + public GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment setResources(GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements resources) { + this.resources = resources; + return this; + } + @Override public GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment set(String fieldName, Object value) { return (GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tool.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tool.java index 4aa49fb78c5..54a217a45d2 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tool.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Tool.java @@ -55,6 +55,14 @@ public final class GoogleCloudAiplatformV1Tool extends com.google.api.client.jso @com.google.api.client.util.Key private GoogleCloudAiplatformV1EnterpriseWebSearch enterpriseWebSearch; + /** + * Optional. Uses Exa.ai to search for information to answer user queries. The search results will + * be grounded on Exa.ai and presented to the model for response generation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1ToolExaAiSearch exaAiSearch; + /** * Optional. Function tool type. One or more function declarations to be passed to the model along * with the current user query. Model may decide to call a subset of these functions by populating @@ -173,6 +181,25 @@ public GoogleCloudAiplatformV1Tool setEnterpriseWebSearch(GoogleCloudAiplatformV return this; } + /** + * Optional. Uses Exa.ai to search for information to answer user queries. The search results will + * be grounded on Exa.ai and presented to the model for response generation + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1ToolExaAiSearch getExaAiSearch() { + return exaAiSearch; + } + + /** + * Optional. Uses Exa.ai to search for information to answer user queries. The search results will + * be grounded on Exa.ai and presented to the model for response generation + * @param exaAiSearch exaAiSearch or {@code null} for none + */ + public GoogleCloudAiplatformV1Tool setExaAiSearch(GoogleCloudAiplatformV1ToolExaAiSearch exaAiSearch) { + this.exaAiSearch = exaAiSearch; + return this; + } + /** * Optional. Function tool type. One or more function declarations to be passed to the model along * with the current user query. Model may decide to call a subset of these functions by populating diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolExaAiSearch.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolExaAiSearch.java new file mode 100644 index 00000000000..3ead5fe6f26 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolExaAiSearch.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; + +/** + * ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. + * + *
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1ToolExaAiSearch extends com.google.api.client.json.GenericJson { + + /** + * Required. The API key for ExaAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map{@link GetSemanticGovernancePolicyEngine#initialize(com.google + * .api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this + * instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the SemanticGovernancePolicyEngine to retrieve. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @since 1.13 + */ + protected GetSemanticGovernancePolicyEngine(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetSemanticGovernancePolicyEngine set$Xgafv(java.lang.String $Xgafv) { + return (GetSemanticGovernancePolicyEngine) super.set$Xgafv($Xgafv); + } + + @Override + public GetSemanticGovernancePolicyEngine setAccessToken(java.lang.String accessToken) { + return (GetSemanticGovernancePolicyEngine) super.setAccessToken(accessToken); + } + + @Override + public GetSemanticGovernancePolicyEngine setAlt(java.lang.String alt) { + return (GetSemanticGovernancePolicyEngine) super.setAlt(alt); + } + + @Override + public GetSemanticGovernancePolicyEngine setCallback(java.lang.String callback) { + return (GetSemanticGovernancePolicyEngine) super.setCallback(callback); + } + + @Override + public GetSemanticGovernancePolicyEngine setFields(java.lang.String fields) { + return (GetSemanticGovernancePolicyEngine) super.setFields(fields); + } + + @Override + public GetSemanticGovernancePolicyEngine setKey(java.lang.String key) { + return (GetSemanticGovernancePolicyEngine) super.setKey(key); + } + + @Override + public GetSemanticGovernancePolicyEngine setOauthToken(java.lang.String oauthToken) { + return (GetSemanticGovernancePolicyEngine) super.setOauthToken(oauthToken); + } + + @Override + public GetSemanticGovernancePolicyEngine setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetSemanticGovernancePolicyEngine) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetSemanticGovernancePolicyEngine setQuotaUser(java.lang.String quotaUser) { + return (GetSemanticGovernancePolicyEngine) super.setQuotaUser(quotaUser); + } + + @Override + public GetSemanticGovernancePolicyEngine setUploadType(java.lang.String uploadType) { + return (GetSemanticGovernancePolicyEngine) super.setUploadType(uploadType); + } + + @Override + public GetSemanticGovernancePolicyEngine setUploadProtocol(java.lang.String uploadProtocol) { + return (GetSemanticGovernancePolicyEngine) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the SemanticGovernancePolicyEngine to retrieve. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the SemanticGovernancePolicyEngine to retrieve. Format: + projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the SemanticGovernancePolicyEngine to retrieve. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public GetSemanticGovernancePolicyEngine setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + this.name = name; + return this; + } + + @Override + public GetSemanticGovernancePolicyEngine set(String parameterName, Object value) { + return (GetSemanticGovernancePolicyEngine) super.set(parameterName, value); + } + } /** * Lists information about the supported locations for this service. This method lists locations * based on the resource scope provided in the ListLocationsRequest.name field: * **Global @@ -45976,6 +46129,177 @@ public UpdateRagEngineConfig set(String parameterName, Object value) { return (UpdateRagEngineConfig) super.set(parameterName, value); } } + /** + * Updates a SemanticGovernancePolicyEngine. This method performs an upsert operation. If the + * SemanticGovernancePolicyEngine resource does not exist, it will be created. Otherwise, it will be + * updated. + * + * Create a request for the method "locations.updateSemanticGovernancePolicyEngine". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UpdateSemanticGovernancePolicyEngine#execute()} method to invoke the + * remote operation. + * + * @param name Identifier. The resource name of the SemanticGovernancePolicyEngine. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine} + * @return the request + */ + public UpdateSemanticGovernancePolicyEngine updateSemanticGovernancePolicyEngine(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine content) throws java.io.IOException { + UpdateSemanticGovernancePolicyEngine result = new UpdateSemanticGovernancePolicyEngine(name, content); + initialize(result); + return result; + } + + public class UpdateSemanticGovernancePolicyEngine extends AiplatformRequest{@link UpdateSemanticGovernancePolicyEngine#initialize(com.goo + * gle.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize + * this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The resource name of the SemanticGovernancePolicyEngine. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine} + * @since 1.13 + */ + protected UpdateSemanticGovernancePolicyEngine(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + } + + @Override + public UpdateSemanticGovernancePolicyEngine set$Xgafv(java.lang.String $Xgafv) { + return (UpdateSemanticGovernancePolicyEngine) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setAccessToken(java.lang.String accessToken) { + return (UpdateSemanticGovernancePolicyEngine) super.setAccessToken(accessToken); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setAlt(java.lang.String alt) { + return (UpdateSemanticGovernancePolicyEngine) super.setAlt(alt); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setCallback(java.lang.String callback) { + return (UpdateSemanticGovernancePolicyEngine) super.setCallback(callback); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setFields(java.lang.String fields) { + return (UpdateSemanticGovernancePolicyEngine) super.setFields(fields); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setKey(java.lang.String key) { + return (UpdateSemanticGovernancePolicyEngine) super.setKey(key); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setOauthToken(java.lang.String oauthToken) { + return (UpdateSemanticGovernancePolicyEngine) super.setOauthToken(oauthToken); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateSemanticGovernancePolicyEngine) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setQuotaUser(java.lang.String quotaUser) { + return (UpdateSemanticGovernancePolicyEngine) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setUploadType(java.lang.String uploadType) { + return (UpdateSemanticGovernancePolicyEngine) super.setUploadType(uploadType); + } + + @Override + public UpdateSemanticGovernancePolicyEngine setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateSemanticGovernancePolicyEngine) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the SemanticGovernancePolicyEngine. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the SemanticGovernancePolicyEngine. Format: + projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the SemanticGovernancePolicyEngine. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public UpdateSemanticGovernancePolicyEngine setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + this.name = name; + return this; + } + + /** + * Optional. Specifies the fields to be overwritten in the SemanticGovernancePolicyEngine + * resource by the update. The fields specified in the update_mask are relative to the + * resource itself. If no update_mask is provided, all fields are overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Specifies the fields to be overwritten in the SemanticGovernancePolicyEngine resource by + the update. The fields specified in the update_mask are relative to the resource itself. If no + update_mask is provided, all fields are overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Specifies the fields to be overwritten in the SemanticGovernancePolicyEngine + * resource by the update. The fields specified in the update_mask are relative to the + * resource itself. If no update_mask is provided, all fields are overwritten. + */ + public UpdateSemanticGovernancePolicyEngine setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public UpdateSemanticGovernancePolicyEngine set(String parameterName, Object value) { + return (UpdateSemanticGovernancePolicyEngine) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Agents collection. @@ -45998,7 +46322,7 @@ public Agents agents() { public class Agents { /** - * Creates a new Agent in a given location. + * Creates an agent. * * Create a request for the method "agents.create". * @@ -46024,7 +46348,7 @@ public class Create extends AiplatformRequestThe typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
+ * Create a request for the method "semanticGovernancePolicies.create".
*
- * @return the resource collection
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The resource name of the Location into which to create the SemanticGovernancePolicy.
+ * Format: `projects/{project}/locations/{location}`
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy}
+ * @return the request
*/
- public Operations operations() {
- return new Operations();
+ public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
}
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
+ public class Create extends AiplatformRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be cancelled. - * @return the request + * @param parent Required. The resource name of the Location into which to create the SemanticGovernancePolicy. + * Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy} + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * Required. The resource name of the Location into which to create the + * SemanticGovernancePolicy. Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** Required. The resource name of the Location into which to create the SemanticGovernancePolicy. + Format: `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + /** + * Required. The resource name of the Location into which to create the + * SemanticGovernancePolicy. Format: `projects/{project}/locations/{location}` + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. The ID to use for the SemanticGovernancePolicy, which will become the final + * component of the SemanticGovernancePolicy's resource name. This value may be up to 63 + * characters, and valid characters are `[a-z0-9-]`. The first character cannot be a + * number or hyphen. The last character must be a letter or a number. + */ + @com.google.api.client.util.Key + private java.lang.String semanticGovernancePolicyId; - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** Required. The ID to use for the SemanticGovernancePolicy, which will become the final component of + the SemanticGovernancePolicy's resource name. This value may be up to 63 characters, and valid + characters are `[a-z0-9-]`. The first character cannot be a number or hyphen. The last character + must be a letter or a number. + */ + public java.lang.String getSemanticGovernancePolicyId() { + return semanticGovernancePolicyId; + } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The ID to use for the SemanticGovernancePolicy, which will become the final + * component of the SemanticGovernancePolicy's resource name. This value may be up to 63 + * characters, and valid characters are `[a-z0-9-]`. The first character cannot be a + * number or hyphen. The last character must be a letter or a number. + */ + public Create setSemanticGovernancePolicyId(java.lang.String semanticGovernancePolicyId) { + this.semanticGovernancePolicyId = semanticGovernancePolicyId; + return this; + } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } + } + /** + * Deletes a SemanticGovernancePolicy. + * + * Create a request for the method "semanticGovernancePolicies.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the SemanticGovernancePolicy resource to be deleted. Format: + * `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_p + * olicy}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be deleted. - * @return the request + * @param name Required. The name of the SemanticGovernancePolicy resource to be deleted. Format: + * `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_p + * olicy}` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); + } } - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** + * Required. The name of the SemanticGovernancePolicy resource to be deleted. Format: `pro + * jects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_po + * licy}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** Required. The name of the SemanticGovernancePolicy resource to be deleted. Format: + `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_policy}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the SemanticGovernancePolicy resource to be deleted. Format: `pro + * jects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_po + * licy}` + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. The etag of the SemanticGovernancePolicy. If an etag is provided and does not + * match the current etag of the SemanticGovernancePolicy, deletion will be blocked and an + * ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** Optional. The etag of the SemanticGovernancePolicy. If an etag is provided and does not match the + current etag of the SemanticGovernancePolicy, deletion will be blocked and an ABORTED error will be + returned. + */ + public java.lang.String getEtag() { + return etag; + } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. The etag of the SemanticGovernancePolicy. If an etag is provided and does not + * match the current etag of the SemanticGovernancePolicy, deletion will be blocked and an + * ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } + } + /** + * Gets a SemanticGovernancePolicy. + * + * Create a request for the method "semanticGovernancePolicies.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the SemanticGovernancePolicy resource. Format: + * `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_p + * olicy}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. - * @return the request + * @param name Required. The name of the SemanticGovernancePolicy resource. Format: + * `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_p + * olicy}` + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); + } } - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the SemanticGovernancePolicy resource. Format: `projects/{project + * }/locations/{location}/semanticGovernancePolicies/{semantic_governance_policy}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The name of the SemanticGovernancePolicy resource. Format: + `projects/{project}/locations/{location}/semanticGovernancePolicies/{semantic_governance_policy}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The name of the SemanticGovernancePolicy resource. Format: `projects/{project + * }/locations/{location}/semanticGovernancePolicies/{semantic_governance_policy}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists SemanticGovernancePolicies in a given location. + * + * Create a request for the method "semanticGovernancePolicies.list". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location from which to list the SemanticGovernancePolicies. + * Format: `projects/{project}/locations/{location}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List extends AiplatformRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. - * @return the request + * @param parent Required. The resource name of the Location from which to list the SemanticGovernancePolicies. + * Format: `projects/{project}/locations/{location}` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListSemanticGovernancePoliciesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The resource name of the Location from which to list the + * SemanticGovernancePolicies. Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** Required. The resource name of the Location from which to list the SemanticGovernancePolicies. + Format: `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; + /** + * Required. The resource name of the Location from which to list the + * SemanticGovernancePolicies. Format: `projects/{project}/locations/{location}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Optional. The list page size. If zero, a default page size of 10 is used. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Optional. The list page size. If zero, a default page size of 10 is used. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** Optional. The list page size. If zero, a default page size of 10 is used. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a SemanticGovernancePolicy. + * + * Create a request for the method "semanticGovernancePolicies.patch". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Resource name of the SemanticGovernancePolicy. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. - * This can only be `true` when reading across collections. For example, when `parent` - * is set to `"projects/example/locations/-"`. This field is not supported by default - * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented - * otherwise in service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + public class Patch extends AiplatformRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to wait on. - * @return the request + * @param name Identifier. Resource name of the SemanticGovernancePolicy. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy} + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SemanticGovernancePolicy content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); } + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Identifier. Resource name of the SemanticGovernancePolicy. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** Identifier. Resource name of the SemanticGovernancePolicy. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; + /** Identifier. Resource name of the SemanticGovernancePolicy. */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicies/[^/]+$"); } + this.name = name; + return this; + } - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } + /** + * Optional. `update_mask` is used to specify the fields to be overwritten in the + * SemanticGovernancePolicy resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the mask is not present, then all fields that are + * populated in the request message will be overwritten. Set the `update_mask` to `*` to + * override all fields. + */ + @com.google.api.client.util.Key + private String updateMask; - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at - * most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline - * is also specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** Optional. `update_mask` is used to specify the fields to be overwritten in the + SemanticGovernancePolicy resource by the update. The fields specified in the `update_mask` are + relative to the resource, not the full request. A field will be overwritten if it is in the mask. + If the mask is not present, then all fields that are populated in the request message will be + overwritten. Set the `update_mask` to `*` to override all fields. + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * Optional. `update_mask` is used to specify the fields to be overwritten in the + * SemanticGovernancePolicy resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the mask is not present, then all fields that are + * populated in the request message will be overwritten. Set the `update_mask` to `*` to + * override all fields. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the SemanticGovernancePolicyEngine collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.SemanticGovernancePolicyEngine.List request = aiplatform.semanticGovernancePolicyEngine().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public SemanticGovernancePolicyEngine semanticGovernancePolicyEngine() {
- return new SemanticGovernancePolicyEngine();
- }
-
- /**
- * The "semanticGovernancePolicyEngine" collection of methods.
- */
- public class SemanticGovernancePolicyEngine {
/**
* An accessor for creating requests from the Operations collection.
@@ -179499,7 +179804,7 @@ public class Cancel extends AiplatformRequest
+ * {@code Aiplatform aiplatform = new Aiplatform(...);}
+ * {@code Aiplatform.SemanticGovernancePolicyEngine.List request = aiplatform.semanticGovernancePolicyEngine().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public SemanticGovernancePolicyEngine semanticGovernancePolicyEngine() {
+ return new SemanticGovernancePolicyEngine();
+ }
+
+ /**
+ * The "semanticGovernancePolicyEngine" collection of methods.
+ */
+ public class SemanticGovernancePolicyEngine {
+
+ /**
+ * Deprovisions the SemanticGovernancePolicyEngine, tearing down the associated tenant project, GKE
+ * cluster, and PSC service attachments. This operation is irreversible. Returns a long-running
+ * operation; poll for completion. The response contains the SemanticGovernancePolicyEngine in
+ * DEPROVISIONING state.
+ *
+ * Create a request for the method "semanticGovernancePolicyEngine.deprovision".
+ *
+ * This request holds the parameters needed by the aiplatform server. After setting any optional
+ * parameters, call the {@link Deprovision#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the SemanticGovernancePolicyEngine to deprovision. Format:
+ * projects/{project}/locations/{location}/semanticGovernancePolicyEngine
+ * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeprovisionSemanticGovernancePolicyEngineRequest}
+ * @return the request
+ */
+ public Deprovision deprovision(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeprovisionSemanticGovernancePolicyEngineRequest content) throws java.io.IOException {
+ Deprovision result = new Deprovision(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Deprovision extends AiplatformRequest{@link + * Deprovision#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the SemanticGovernancePolicyEngine to deprovision. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeprovisionSemanticGovernancePolicyEngineRequest} + * @since 1.13 + */ + protected Deprovision(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeprovisionSemanticGovernancePolicyEngineRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + } + + @Override + public Deprovision set$Xgafv(java.lang.String $Xgafv) { + return (Deprovision) super.set$Xgafv($Xgafv); + } + + @Override + public Deprovision setAccessToken(java.lang.String accessToken) { + return (Deprovision) super.setAccessToken(accessToken); + } + + @Override + public Deprovision setAlt(java.lang.String alt) { + return (Deprovision) super.setAlt(alt); + } + + @Override + public Deprovision setCallback(java.lang.String callback) { + return (Deprovision) super.setCallback(callback); + } + + @Override + public Deprovision setFields(java.lang.String fields) { + return (Deprovision) super.setFields(fields); + } + + @Override + public Deprovision setKey(java.lang.String key) { + return (Deprovision) super.setKey(key); + } + + @Override + public Deprovision setOauthToken(java.lang.String oauthToken) { + return (Deprovision) super.setOauthToken(oauthToken); + } + + @Override + public Deprovision setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deprovision) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deprovision setQuotaUser(java.lang.String quotaUser) { + return (Deprovision) super.setQuotaUser(quotaUser); + } + + @Override + public Deprovision setUploadType(java.lang.String uploadType) { + return (Deprovision) super.setUploadType(uploadType); + } + + @Override + public Deprovision setUploadProtocol(java.lang.String uploadProtocol) { + return (Deprovision) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the SemanticGovernancePolicyEngine to deprovision. + * Format: projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the SemanticGovernancePolicyEngine to deprovision. Format: + projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the SemanticGovernancePolicyEngine to deprovision. + * Format: projects/{project}/locations/{location}/semanticGovernancePolicyEngine + */ + public Deprovision setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/semanticGovernancePolicyEngine$"); + } + this.name = name; + return this; + } + + @Override + public Deprovision set(String parameterName, Object value) { + return (Deprovision) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the ServingProfiles collection. * @@ -181276,7 +181749,7 @@ public Create setParent(java.lang.String parent) { } /** - * Optional. The ID to use for the Skill, which will become the final component of the + * Required. The ID to use for the Skill, which will become the final component of the * Skill's resource name. If not provided, a system-generated ID will be used. This value * must be 1-63 characters. Valid characters are lowercase letters, numbers, and hyphens. * The first character must be a lowercase letter, and the last character must be a @@ -181287,7 +181760,7 @@ public Create setParent(java.lang.String parent) { @com.google.api.client.util.Key private java.lang.String skillId; - /** Optional. The ID to use for the Skill, which will become the final component of the Skill's + /** Required. The ID to use for the Skill, which will become the final component of the Skill's resource name. If not provided, a system-generated ID will be used. This value must be 1-63 characters. Valid characters are lowercase letters, numbers, and hyphens. The first character must be a lowercase letter, and the last character must be a lowercase letter or a number. Specifically, @@ -181299,7 +181772,7 @@ public java.lang.String getSkillId() { } /** - * Optional. The ID to use for the Skill, which will become the final component of the + * Required. The ID to use for the Skill, which will become the final component of the * Skill's resource name. If not provided, a system-generated ID will be used. This value * must be 1-63 characters. Valid characters are lowercase letters, numbers, and hyphens. * The first character must be a lowercase letter, and the last character must be a @@ -200364,6 +200837,150 @@ public OptimizePrompt set(String parameterName, Object value) { return (OptimizePrompt) super.set(parameterName, value); } } + /** + * Processes data from a user's Cloud Storage bucket and saves the result to a destination Cloud + * Storage bucket. This method returns a long-running operation, and the `ProcessDataResponse` will + * be returned upon completion. + * + * Create a request for the method "tuningJobs.processData". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ProcessData#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the Location to process the data in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ProcessDataRequest} + * @return the request + */ + public ProcessData processData(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ProcessDataRequest content) throws java.io.IOException { + ProcessData result = new ProcessData(parent, content); + initialize(result); + return result; + } + + public class ProcessData extends AiplatformRequest{@link + * ProcessData#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The resource name of the Location to process the data in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ProcessDataRequest} + * @since 1.13 + */ + protected ProcessData(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ProcessDataRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public ProcessData set$Xgafv(java.lang.String $Xgafv) { + return (ProcessData) super.set$Xgafv($Xgafv); + } + + @Override + public ProcessData setAccessToken(java.lang.String accessToken) { + return (ProcessData) super.setAccessToken(accessToken); + } + + @Override + public ProcessData setAlt(java.lang.String alt) { + return (ProcessData) super.setAlt(alt); + } + + @Override + public ProcessData setCallback(java.lang.String callback) { + return (ProcessData) super.setCallback(callback); + } + + @Override + public ProcessData setFields(java.lang.String fields) { + return (ProcessData) super.setFields(fields); + } + + @Override + public ProcessData setKey(java.lang.String key) { + return (ProcessData) super.setKey(key); + } + + @Override + public ProcessData setOauthToken(java.lang.String oauthToken) { + return (ProcessData) super.setOauthToken(oauthToken); + } + + @Override + public ProcessData setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ProcessData) super.setPrettyPrint(prettyPrint); + } + + @Override + public ProcessData setQuotaUser(java.lang.String quotaUser) { + return (ProcessData) super.setQuotaUser(quotaUser); + } + + @Override + public ProcessData setUploadType(java.lang.String uploadType) { + return (ProcessData) super.setUploadType(uploadType); + } + + @Override + public ProcessData setUploadProtocol(java.lang.String uploadProtocol) { + return (ProcessData) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to process the data in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to process the data in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to process the data in. Format: + * `projects/{project}/locations/{location}` + */ + public ProcessData setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ProcessData set(String parameterName, Object value) { + return (ProcessData) super.set(parameterName, value); + } + } /** * Rebase a tuned model. A rebase operation takes a model that was previously tuned on a base model * version, and retunes it on a new base model version. The rebase operation creates a new tuning @@ -213356,22 +213973,22 @@ public Patch setName(java.lang.String name) { } /** - * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` * `fact` + * Optional. Mask specifying which fields to update. The following fields are immutable: * + * `scope` * `memory_type` */ @com.google.api.client.util.Key private String updateMask; - /** Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - `description` * `fact` + /** Optional. Mask specifying which fields to update. The following fields are immutable: * `scope` * + `memory_type` */ public String getUpdateMask() { return updateMask; } /** - * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` * `fact` + * Optional. Mask specifying which fields to update. The following fields are immutable: * + * `scope` * `memory_type` */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; @@ -229576,853 +230193,6 @@ public Wait set(String parameterName, Object value) { } } - /** - * An accessor for creating requests from the SemanticGovernancePolicyEngine collection. - * - *The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.SemanticGovernancePolicyEngine.List request = aiplatform.semanticGovernancePolicyEngine().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public SemanticGovernancePolicyEngine semanticGovernancePolicyEngine() {
- return new SemanticGovernancePolicyEngine();
- }
-
- /**
- * The "semanticGovernancePolicyEngine" collection of methods.
- */
- public class SemanticGovernancePolicyEngine {
-
- /**
- * An accessor for creating requests from the Operations collection.
- *
- * The typical use is:
- *
- * {@code Aiplatform aiplatform = new Aiplatform(...);}
- * {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
-
- /**
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
- * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
- * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
- * methods to check whether the cancellation succeeded or whether the operation completed despite
- * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
- * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
- * `Code.CANCELLED`.
- *
- * Create a request for the method "operations.cancel".
- *
- * This request holds the parameters needed by the aiplatform server. After setting any optional
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
- *
- * @param name The name of the operation resource to be cancelled.
- * @return the request
- */
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
- initialize(result);
- return result;
- }
-
- public class Cancel extends AiplatformRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends AiplatformRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends AiplatformRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends AiplatformRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those that - * are unreachable are returned in the ListOperationsResponse.unreachable field. This can - * only be `true` when reading across collections. For example, when `parent` is set to - * `"projects/example/locations/-"`. This field is not supported by default and will result - * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - * product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those that - * are unreachable are returned in the ListOperationsResponse.unreachable field. This can - * only be `true` when reading across collections. For example, when `parent` is set to - * `"projects/example/locations/-"`. This field is not supported by default and will result - * in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - * product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits until the specified long-running operation is done or reaches at most a specified timeout, - * returning the latest state. If the operation is already done, the latest state is immediately - * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - * timeout is used. If the server does not support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return - * the latest state before the specified timeout (including immediately), meaning even an immediate - * response is no guarantee that the operation is done. - * - * Create a request for the method "operations.wait". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to wait on. - * @return the request - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; - } - - public class Wait extends AiplatformRequest- * {@link Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to wait on. - * @since 1.13 - */ - protected Wait(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^semanticGovernancePolicyEngine/operations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at most - * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also - * specified, the shorter one will be used. - */ - @com.google.api.client.util.Key - private String timeout; - - /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time - permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the - shorter one will be used. - */ - public String getTimeout() { - return timeout; - } - - /** - * The maximum duration to wait before timing out. If left blank, the wait will be at most - * the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also - * specified, the shorter one will be used. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - } - /** * An accessor for creating requests from the ServingProfiles collection. * diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java index 828fcd60329..f7f2c1ba832 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java @@ -65,6 +65,15 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperiments extends com. @com.google.api.client.util.Key private java.lang.Integer numDiffusionSteps; + /** + * The original REST API request JSON sent by the user, in the instances/parameters format. + * Preserved for saving alongside output artifacts so users can reproduce their requests. This + * field is populated by the API handler and is not user-settable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String originalRequestJson; + /** * Prompt chunks for "ProModel" prompting. If set, the prompt will not be rewritten, and top-level * prompt ignored. @@ -194,6 +203,27 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setNumDiffusionSteps(jav return this; } + /** + * The original REST API request JSON sent by the user, in the instances/parameters format. + * Preserved for saving alongside output artifacts so users can reproduce their requests. This + * field is populated by the API handler and is not user-settable. + * @return value or {@code null} for none + */ + public java.lang.String getOriginalRequestJson() { + return originalRequestJson; + } + + /** + * The original REST API request JSON sent by the user, in the instances/parameters format. + * Preserved for saving alongside output artifacts so users can reproduce their requests. This + * field is populated by the API handler and is not user-settable. + * @param originalRequestJson originalRequestJson or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setOriginalRequestJson(java.lang.String originalRequestJson) { + this.originalRequestJson = originalRequestJson; + return this; + } + /** * Prompt chunks for "ProModel" prompting. If set, the prompt will not be rewritten, and top-level * prompt ignored. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ArgumentsDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ArgumentsDelta.java index 59d10bb97e4..2bc2fa063e9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ArgumentsDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ArgumentsDelta.java @@ -32,21 +32,21 @@ public final class GenaiVertexV1beta1ArgumentsDelta extends com.google.api.clien /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("partial_arguments") - private java.lang.String partialArguments; + @com.google.api.client.util.Key + private java.lang.String arguments; /** * @return value or {@code null} for none */ - public java.lang.String getPartialArguments() { - return partialArguments; + public java.lang.String getArguments() { + return arguments; } /** - * @param partialArguments partialArguments or {@code null} for none + * @param arguments arguments or {@code null} for none */ - public GenaiVertexV1beta1ArgumentsDelta setPartialArguments(java.lang.String partialArguments) { - this.partialArguments = partialArguments; + public GenaiVertexV1beta1ArgumentsDelta setArguments(java.lang.String arguments) { + this.arguments = arguments; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java new file mode 100644 index 00000000000..add5def051a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfig.java @@ -0,0 +1,111 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Configuration for a custom environment. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1EnvironmentConfig extends com.google.api.client.json.GenericJson { + + /** + * Allow only specific domains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist networkAllowlist; + + /** + * Network egress mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkMode; + + /** + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1EnvironmentConfigEgressRule extends com.google.api.client.json.GenericJson { + + /** + * The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a + * wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). + * Value: header value (e.g., "Bearer your-token"). + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist extends com.google.api.client.json.GenericJson { + + /** + * List of allowed domains and their configurations. + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1EnvironmentConfigSource extends com.google.api.client.json.GenericJson { + + /** + * The inline content if `type` is `INLINE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * Optional encoding for inline content (e.g. `base64`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encoding; + + /** + * The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub + * path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Where the source should appear in the environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The inline content if `type` is `INLINE`. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The inline content if `type` is `INLINE`. + * @param content content or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigSource setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * Optional encoding for inline content (e.g. `base64`). + * @return value or {@code null} for none + */ + public java.lang.String getEncoding() { + return encoding; + } + + /** + * Optional encoding for inline content (e.g. `base64`). + * @param encoding encoding or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigSource setEncoding(java.lang.String encoding) { + this.encoding = encoding; + return this; + } + + /** + * The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub + * path. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub + * path. + * @param source source or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigSource setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Where the source should appear in the environment. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Where the source should appear in the environment. + * @param target target or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigSource setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigSource setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GenaiVertexV1beta1EnvironmentConfigSource set(String fieldName, Object value) { + return (GenaiVertexV1beta1EnvironmentConfigSource) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1EnvironmentConfigSource clone() { + return (GenaiVertexV1beta1EnvironmentConfigSource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java index bd3aecb57fe..46017d0b75f 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java @@ -58,6 +58,21 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j @com.google.api.client.util.Key private java.lang.String created; + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("env_id") + private java.lang.String envId; + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("environment_id") + private java.lang.String environmentId; + /** * Required. Output only. A unique identifier for the interaction completion. * The value may be {@code null}. @@ -92,6 +107,12 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j @com.google.api.client.util.Key("previous_interaction_id") private java.lang.String previousInteractionId; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1EnvironmentConfig remoteEnvironment; + /** * The value may be {@code null}. */ @@ -148,7 +169,7 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j private GenaiVertexV1beta1StepList stepList; /** - * Output only. The steps that make up the interaction. + * Required. Output only. The steps that make up the interaction. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -267,6 +288,42 @@ public GenaiVertexV1beta1Interaction setCreated(java.lang.String created) { return this; } + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * @return value or {@code null} for none + */ + public java.lang.String getEnvId() { + return envId; + } + + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * @param envId envId or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setEnvId(java.lang.String envId) { + this.envId = envId; + return this; + } + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * @param environmentId environmentId or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + /** * Required. Output only. A unique identifier for the interaction completion. * @return value or {@code null} for none @@ -335,6 +392,21 @@ public GenaiVertexV1beta1Interaction setPreviousInteractionId(java.lang.String p return this; } + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfig getRemoteEnvironment() { + return remoteEnvironment; + } + + /** + * @param remoteEnvironment remoteEnvironment or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setRemoteEnvironment(GenaiVertexV1beta1EnvironmentConfig remoteEnvironment) { + this.remoteEnvironment = remoteEnvironment; + return this; + } + /** * @return value or {@code null} for none */ @@ -470,7 +542,7 @@ public GenaiVertexV1beta1Interaction setStepList(GenaiVertexV1beta1StepList step } /** - * Output only. The steps that make up the interaction. + * Required. Output only. The steps that make up the interaction. * @return value or {@code null} for none */ public java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1ServerToolCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1CodeExecutionCallDelta codeExecutionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1FileSearchCallDelta fileSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1GoogleMapsCallDelta googleMapsCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1GoogleSearchCallDelta googleSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1McpServerToolCallDelta mcpServerToolCall; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1UrlContextCallDelta urlContextCall; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeExecutionCallDelta getCodeExecutionCall() { + return codeExecutionCall; + } + + /** + * @param codeExecutionCall codeExecutionCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setCodeExecutionCall(GenaiVertexV1beta1CodeExecutionCallDelta codeExecutionCall) { + this.codeExecutionCall = codeExecutionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1FileSearchCallDelta getFileSearchCall() { + return fileSearchCall; + } + + /** + * @param fileSearchCall fileSearchCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setFileSearchCall(GenaiVertexV1beta1FileSearchCallDelta fileSearchCall) { + this.fileSearchCall = fileSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1GoogleMapsCallDelta getGoogleMapsCall() { + return googleMapsCall; + } + + /** + * @param googleMapsCall googleMapsCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setGoogleMapsCall(GenaiVertexV1beta1GoogleMapsCallDelta googleMapsCall) { + this.googleMapsCall = googleMapsCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1GoogleSearchCallDelta getGoogleSearchCall() { + return googleSearchCall; + } + + /** + * @param googleSearchCall googleSearchCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setGoogleSearchCall(GenaiVertexV1beta1GoogleSearchCallDelta googleSearchCall) { + this.googleSearchCall = googleSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1McpServerToolCallDelta getMcpServerToolCall() { + return mcpServerToolCall; + } + + /** + * @param mcpServerToolCall mcpServerToolCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setMcpServerToolCall(GenaiVertexV1beta1McpServerToolCallDelta mcpServerToolCall) { + this.mcpServerToolCall = mcpServerToolCall; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GenaiVertexV1beta1ServerToolCallDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1UrlContextCallDelta getUrlContextCall() { + return urlContextCall; + } + + /** + * @param urlContextCall urlContextCall or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta setUrlContextCall(GenaiVertexV1beta1UrlContextCallDelta urlContextCall) { + this.urlContextCall = urlContextCall; + return this; + } + + @Override + public GenaiVertexV1beta1ServerToolCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1beta1ServerToolCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1ServerToolCallDelta clone() { + return (GenaiVertexV1beta1ServerToolCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ServerToolResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ServerToolResultDelta.java new file mode 100644 index 00000000000..c63e5d7e464 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ServerToolResultDelta.java @@ -0,0 +1,220 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1beta1ServerToolResultDelta. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1ServerToolResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1CodeExecutionResultDelta codeExecutionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1FileSearchResultDelta fileSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1GoogleMapsResultDelta googleMapsResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1GoogleSearchResultDelta googleSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1McpServerToolResultDelta mcpServerToolResult; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1UrlContextResultDelta urlContextResult; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeExecutionResultDelta getCodeExecutionResult() { + return codeExecutionResult; + } + + /** + * @param codeExecutionResult codeExecutionResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setCodeExecutionResult(GenaiVertexV1beta1CodeExecutionResultDelta codeExecutionResult) { + this.codeExecutionResult = codeExecutionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1FileSearchResultDelta getFileSearchResult() { + return fileSearchResult; + } + + /** + * @param fileSearchResult fileSearchResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setFileSearchResult(GenaiVertexV1beta1FileSearchResultDelta fileSearchResult) { + this.fileSearchResult = fileSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1GoogleMapsResultDelta getGoogleMapsResult() { + return googleMapsResult; + } + + /** + * @param googleMapsResult googleMapsResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setGoogleMapsResult(GenaiVertexV1beta1GoogleMapsResultDelta googleMapsResult) { + this.googleMapsResult = googleMapsResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1GoogleSearchResultDelta getGoogleSearchResult() { + return googleSearchResult; + } + + /** + * @param googleSearchResult googleSearchResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setGoogleSearchResult(GenaiVertexV1beta1GoogleSearchResultDelta googleSearchResult) { + this.googleSearchResult = googleSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1McpServerToolResultDelta getMcpServerToolResult() { + return mcpServerToolResult; + } + + /** + * @param mcpServerToolResult mcpServerToolResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setMcpServerToolResult(GenaiVertexV1beta1McpServerToolResultDelta mcpServerToolResult) { + this.mcpServerToolResult = mcpServerToolResult; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GenaiVertexV1beta1ServerToolResultDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1UrlContextResultDelta getUrlContextResult() { + return urlContextResult; + } + + /** + * @param urlContextResult urlContextResult or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta setUrlContextResult(GenaiVertexV1beta1UrlContextResultDelta urlContextResult) { + this.urlContextResult = urlContextResult; + return this; + } + + @Override + public GenaiVertexV1beta1ServerToolResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1beta1ServerToolResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1ServerToolResultDelta clone() { + return (GenaiVertexV1beta1ServerToolResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StepDeltaData.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StepDeltaData.java index 4086d0c1734..beb605f85ed 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StepDeltaData.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StepDeltaData.java @@ -47,12 +47,30 @@ public final class GenaiVertexV1beta1StepDeltaData extends com.google.api.client @com.google.api.client.util.Key private GenaiVertexV1beta1DocumentDelta document; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1FunctionResultDelta functionResult; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private GenaiVertexV1beta1ImageDelta image; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1ServerToolCallDelta serverToolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1ServerToolResultDelta serverToolResult; + /** * The value may be {@code null}. */ @@ -128,6 +146,21 @@ public GenaiVertexV1beta1StepDeltaData setDocument(GenaiVertexV1beta1DocumentDel return this; } + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1FunctionResultDelta getFunctionResult() { + return functionResult; + } + + /** + * @param functionResult functionResult or {@code null} for none + */ + public GenaiVertexV1beta1StepDeltaData setFunctionResult(GenaiVertexV1beta1FunctionResultDelta functionResult) { + this.functionResult = functionResult; + return this; + } + /** * @return value or {@code null} for none */ @@ -143,6 +176,36 @@ public GenaiVertexV1beta1StepDeltaData setImage(GenaiVertexV1beta1ImageDelta ima return this; } + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolCallDelta getServerToolCall() { + return serverToolCall; + } + + /** + * @param serverToolCall serverToolCall or {@code null} for none + */ + public GenaiVertexV1beta1StepDeltaData setServerToolCall(GenaiVertexV1beta1ServerToolCallDelta serverToolCall) { + this.serverToolCall = serverToolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1ServerToolResultDelta getServerToolResult() { + return serverToolResult; + } + + /** + * @param serverToolResult serverToolResult or {@code null} for none + */ + public GenaiVertexV1beta1StepDeltaData setServerToolResult(GenaiVertexV1beta1ServerToolResultDelta serverToolResult) { + this.serverToolResult = serverToolResult; + return this; + } + /** * @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/GenaiVertexV1beta1StreamMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java new file mode 100644 index 00000000000..e82c1ed8aef --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1beta1StreamMetadata. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1beta1StreamMetadata extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1InteractionUsage usage; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1InteractionUsage getUsage() { + return usage; + } + + /** + * @param usage usage or {@code null} for none + */ + public GenaiVertexV1beta1StreamMetadata setUsage(GenaiVertexV1beta1InteractionUsage usage) { + this.usage = usage; + return this; + } + + @Override + public GenaiVertexV1beta1StreamMetadata set(String fieldName, Object value) { + return (GenaiVertexV1beta1StreamMetadata) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1StreamMetadata clone() { + return (GenaiVertexV1beta1StreamMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UserInputStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UserInputStep.java index c933a077e3e..c75ad4267c6 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UserInputStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UserInputStep.java @@ -30,29 +30,50 @@ public final class GenaiVertexV1beta1UserInputStep extends com.google.api.client.json.GenericJson { /** + * The content of the step. An array of Content objects. * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1GatewayConfig extends com.google.api.client.json.GenericJson { + + /** + * Output only. The fully qualified record name of the created A-record in Cloud DNS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dnsRecord; + + /** + * Optional. FQDN of the private DNS zone to create DNS record set for PSC endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dnsZoneName; + + /** + * Output only. The private IP address of the PSC endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Optional. The URI of the network resource where PSC-E will be provisioned. if not provided + * `default` network will be used. Format: projects/{project}/global/networks/{network} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. The self-link or name of the Private Service Connect endpoint forwarding rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pscEndpoint; + + /** + * Output only. The state of the Gateway configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. The URI of the subnetwork resource where PSC-E will be provisioned. if not provided + * `default` subnet will be used from the same {location} Format: + * projects/{project}/regions/{region}/subnetworks/{subnetwork} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Output only. The fully qualified record name of the created A-record in Cloud DNS. + * @return value or {@code null} for none + */ + public java.lang.String getDnsRecord() { + return dnsRecord; + } + + /** + * Output only. The fully qualified record name of the created A-record in Cloud DNS. + * @param dnsRecord dnsRecord or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setDnsRecord(java.lang.String dnsRecord) { + this.dnsRecord = dnsRecord; + return this; + } + + /** + * Optional. FQDN of the private DNS zone to create DNS record set for PSC endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getDnsZoneName() { + return dnsZoneName; + } + + /** + * Optional. FQDN of the private DNS zone to create DNS record set for PSC endpoint. + * @param dnsZoneName dnsZoneName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setDnsZoneName(java.lang.String dnsZoneName) { + this.dnsZoneName = dnsZoneName; + return this; + } + + /** + * Output only. The private IP address of the PSC endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. The private IP address of the PSC endpoint. + * @param ipAddress ipAddress or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Optional. The URI of the network resource where PSC-E will be provisioned. if not provided + * `default` network will be used. Format: projects/{project}/global/networks/{network} + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Optional. The URI of the network resource where PSC-E will be provisioned. if not provided + * `default` network will be used. Format: projects/{project}/global/networks/{network} + * @param network network or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. The self-link or name of the Private Service Connect endpoint forwarding rule. + * @return value or {@code null} for none + */ + public java.lang.String getPscEndpoint() { + return pscEndpoint; + } + + /** + * Output only. The self-link or name of the Private Service Connect endpoint forwarding rule. + * @param pscEndpoint pscEndpoint or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setPscEndpoint(java.lang.String pscEndpoint) { + this.pscEndpoint = pscEndpoint; + return this; + } + + /** + * Output only. The state of the Gateway configuration. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the Gateway configuration. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Optional. The URI of the subnetwork resource where PSC-E will be provisioned. if not provided + * `default` subnet will be used from the same {location} Format: + * projects/{project}/regions/{region}/subnetworks/{subnetwork} + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * Optional. The URI of the subnetwork resource where PSC-E will be provisioned. if not provided + * `default` subnet will be used from the same {location} Format: + * projects/{project}/regions/{region}/subnetworks/{subnetwork} + * @param subnetwork subnetwork or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GatewayConfig setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1GatewayConfig set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1GatewayConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1GatewayConfig clone() { + return (GoogleCloudAiplatformV1beta1GatewayConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentsResponse.java index ce855b7e288..280de34a328 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentsResponse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentsResponse.java @@ -30,7 +30,7 @@ public final class GoogleCloudAiplatformV1beta1ListAgentsResponse extends com.google.api.client.json.GenericJson { /** - * A list of agents matching the request. + * The agents matching the request. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,15 +43,15 @@ public final class GoogleCloudAiplatformV1beta1ListAgentsResponse extends com.go } /** - * A token, which can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence - * of this field indicates there are no subsequent pages. + * A token to retrieve the next page of results. Pass this value as ListAgentsRequest.page_token + * in a subsequent call. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextPageToken; /** - * A list of agents matching the request. + * The agents matching the request. * @return value or {@code null} for none */ public java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: @@ -39,7 +39,10 @@ public final class GoogleCloudAiplatformV1beta1PersistentDiskSpec extends com.go /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,7 +68,10 @@ public GoogleCloudAiplatformV1beta1PersistentDiskSpec setDiskSizeGb(java.lang.Lo /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * @return value or {@code null} for none */ public java.lang.String getDiskType() { @@ -75,7 +81,10 @@ public java.lang.String getDiskType() { /** * Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid * State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent - * Disk) "pd-extreme" (Extreme Persistent Disk) + * Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) + * "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk + * Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" (Hyperdisk + * Throughput) * @param diskType diskType or {@code null} for none */ public GoogleCloudAiplatformV1beta1PersistentDiskSpec setDiskType(java.lang.String diskType) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequest.java new file mode 100644 index 00000000000..c51e9019433 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequest.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Request message for GenAiTuningService.ProcessData. + * + *
This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1ProcessDataRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The GCS bucket to store the processed videos and captions data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GcsDestination gcsDestination; + + /** + * Optional. A JSONL file containing a list of files to process stored in the user's GCS bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GcsSource gcsSource; + + /** + * Optional. Spec for Veo data processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec veoSpec; + + /** + * Optional. The GCS bucket to store the processed videos and captions data. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GcsDestination getGcsDestination() { + return gcsDestination; + } + + /** + * Optional. The GCS bucket to store the processed videos and captions data. + * @param gcsDestination gcsDestination or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ProcessDataRequest setGcsDestination(GoogleCloudAiplatformV1beta1GcsDestination gcsDestination) { + this.gcsDestination = gcsDestination; + return this; + } + + /** + * Optional. A JSONL file containing a list of files to process stored in the user's GCS bucket. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GcsSource getGcsSource() { + return gcsSource; + } + + /** + * Optional. A JSONL file containing a list of files to process stored in the user's GCS bucket. + * @param gcsSource gcsSource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ProcessDataRequest setGcsSource(GoogleCloudAiplatformV1beta1GcsSource gcsSource) { + this.gcsSource = gcsSource; + return this; + } + + /** + * Optional. Spec for Veo data processing. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec getVeoSpec() { + return veoSpec; + } + + /** + * Optional. Spec for Veo data processing. + * @param veoSpec veoSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ProcessDataRequest setVeoSpec(GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec veoSpec) { + this.veoSpec = veoSpec; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ProcessDataRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ProcessDataRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ProcessDataRequest clone() { + return (GoogleCloudAiplatformV1beta1ProcessDataRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec.java new file mode 100644 index 00000000000..0ae8c3756b8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec.java @@ -0,0 +1,66 @@ +/* + * 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; + +/** + * Spec for Veo data processing. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of data processing to perform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String processType; + + /** + * Optional. The type of data processing to perform. + * @return value or {@code null} for none + */ + public java.lang.String getProcessType() { + return processType; + } + + /** + * Optional. The type of data processing to perform. + * @param processType processType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec setProcessType(java.lang.String processType) { + this.processType = processType; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec clone() { + return (GoogleCloudAiplatformV1beta1ProcessDataRequestVeoSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment.java index a5b65ebd3e9..13fc4fbcc39 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment.java @@ -36,6 +36,13 @@ public final class GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefault @com.google.api.client.util.Key private java.lang.String defaultContainerCategory; + /** + * Optional. Resource requests and limits for the default container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateResourceRequirements resources; + /** * Required. The category of the default container image. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnv return this; } + /** + * Optional. Resource requests and limits for the default container. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateResourceRequirements getResources() { + return resources; + } + + /** + * Optional. Resource requests and limits for the default container. + * @param resources resources or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment setResources(GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateResourceRequirements resources) { + this.resources = resources; + return this; + } + @Override public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment set(String fieldName, Object value) { return (GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateDefaultContainerEnvironment) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicy.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicy.java new file mode 100644 index 00000000000..ae2e1fa1556 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SemanticGovernancePolicy.java @@ -0,0 +1,301 @@ +/* + * 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; + +/** + * Represents a governance policy applied to a specific Agent and optionally a specific Tool within + * that Agent. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1SemanticGovernancePolicy extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the agent in Agent Registry that is affected by this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Output only. Represents the principal of the agent, used by the Policy Decision Point (PDP) for + * governance checks. For more information, see https://docs.cloud.google.com/agent-builder/agent- + * engine/agent-identity Format: `principal://TRUST_DOMAIN/NAMESPACE/AGENT_NAME` Example: + * `principal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/aiplatform/projects/PRO + * JECT_NUMBER/locations/LOCATION/reasoningEngines/AGENT_ENGINE_ID` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentIdentity; + + /** + * Output only. Timestamp when this SemanticGovernancePolicy was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the SemanticGovernancePolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The user-defined name of the SemanticGovernancePolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. Used to perform consistent read-modify-write transactions. If provided, the request + * will only succeed if the etag matches the current value. Otherwise, an ABORTED error will be + * returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The McpTools that are affected by this policy. + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1SemanticGovernancePolicyEngine extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when this SemanticGovernancePolicyEngine was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Configurations for gateways. The keys are user-defined names for each gateway. + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1SemanticGovernancePolicyMcpTool extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the McpServer in Agent Registry that is affected by this policy. + * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mcpServer; + + /** + * Optional. The resource names of the McpTools used by the Agent that is affected by this policy. + * If not specified, the policy applies to all McpTools in the McpServer. + * 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 Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1ToolExaAiSearch extends com.google.api.client.json.GenericJson { + + /** + * Required. The API key for ExaAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map