diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceClient.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceClient.java index 961eae0f1a7e..eabdac3e9afd 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceClient.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -160,6 +160,25 @@ * * *
UpdateEndpointLongRunning
Updates an Endpoint with a long running operation.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *updateEndpointLongRunningAsync(Endpoint endpoint) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateEndpointLongRunningOperationCallable() + *
updateEndpointLongRunningCallable() + *
DeleteEndpoint
Deletes an Endpoint.
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * Endpoint endpoint = Endpoint.newBuilder().build();
+ * Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get();
+ * }
+ * }
+ *
+ * @param endpoint Required. The Endpoint which replaces the resource on the server. Currently we
+ * only support updating the `client_connection_config` field, all the other fields' update
+ * will be blocked.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request);
+ * // Do something.
+ * Endpoint response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
+ updateEndpointLongRunningOperationCallable() {
+ return stub.updateEndpointLongRunningOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an Endpoint with a long running operation.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * UpdateEndpointLongRunningRequest request =
+ * UpdateEndpointLongRunningRequest.newBuilder()
+ * .setEndpoint(Endpoint.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of getEndpoint to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getEndpoint: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -80,10 +82,47 @@
* .getEndpointSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* EndpointServiceSettings endpointServiceSettings = endpointServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createEndpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * EndpointServiceSettings.Builder endpointServiceSettingsBuilder =
+ * EndpointServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * endpointServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@Generated("by gapic-generator-java")
public class EndpointServiceSettings extends ClientSettingsThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of countTokens to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of countTokens: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -76,10 +78,21 @@
* .countTokensSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* LlmUtilityServiceSettings llmUtilityServiceSettings = llmUtilityServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class LlmUtilityServiceSettings extends ClientSettingsThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of predict to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of predict: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -79,10 +81,21 @@
* .predictSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* PredictionServiceSettings predictionServiceSettings = predictionServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class PredictionServiceSettings extends ClientSettingsThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of getEndpoint to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getEndpoint: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -119,10 +123,47 @@
* .getEndpointSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* EndpointServiceStubSettings endpointServiceSettings = endpointServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createEndpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * EndpointServiceStubSettings.Builder endpointServiceSettingsBuilder =
+ * EndpointServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * endpointServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@Generated("by gapic-generator-java")
public class EndpointServiceStubSettings extends StubSettingsThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of countTokens to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of countTokens: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -97,11 +99,22 @@
* .countTokensSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* LlmUtilityServiceStubSettings llmUtilityServiceSettings =
* llmUtilityServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class LlmUtilityServiceStubSettings extends StubSettingsThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of predict to 30 seconds: + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of predict: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -116,11 +118,22 @@
* .predictSettings()
* .getRetrySettings()
* .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* PredictionServiceStubSettings predictionServiceSettings =
* predictionServiceSettingsBuilder.build();
* }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
*/
@Generated("by gapic-generator-java")
public class PredictionServiceStubSettings extends StubSettings+ * Updates an Endpoint with a long running operation. + *+ */ + default void updateEndpointLongRunning( + com.google.cloud.vertexai.api.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver
+ * Updates an Endpoint with a long running operation. + *+ */ + public void updateEndpointLongRunning( + com.google.cloud.vertexai.api.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver
+ * Creates an Endpoint. + *+ */ + public com.google.longrunning.Operation createEndpoint( + com.google.cloud.vertexai.api.CreateEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets an Endpoint. + *+ */ + public com.google.cloud.vertexai.api.Endpoint getEndpoint( + com.google.cloud.vertexai.api.GetEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists Endpoints in a Location. + *+ */ + public com.google.cloud.vertexai.api.ListEndpointsResponse listEndpoints( + com.google.cloud.vertexai.api.ListEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates an Endpoint. + *+ */ + public com.google.cloud.vertexai.api.Endpoint updateEndpoint( + com.google.cloud.vertexai.api.UpdateEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates an Endpoint with a long running operation. + *+ */ + public com.google.longrunning.Operation updateEndpointLongRunning( + com.google.cloud.vertexai.api.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes an Endpoint. + *+ */ + public com.google.longrunning.Operation deleteEndpoint( + com.google.cloud.vertexai.api.DeleteEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deploys a Model into this Endpoint, creating a DeployedModel within it. + *+ */ + public com.google.longrunning.Operation deployModel( + com.google.cloud.vertexai.api.DeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Undeploys a Model from an Endpoint, removing a DeployedModel from it, and + * freeing all resources it's using. + *+ */ + public com.google.longrunning.Operation undeployModel( + com.google.cloud.vertexai.api.UndeployModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeployModelMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates an existing deployed model. Updatable fields include + * `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, + * `disable_container_logging` (v1 only), and `enable_container_logging` + * (v1beta1 only). + *+ */ + public com.google.longrunning.Operation mutateDeployedModel( + com.google.cloud.vertexai.api.MutateDeployedModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMutateDeployedModelMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service EndpointService. + * + *
+ * A service for managing Vertex AI's Endpoints. + *+ */ public static final class EndpointServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub
+ * Updates an Endpoint with a long running operation. + *+ */ + public com.google.longrunning.Operation updateEndpointLongRunning( + com.google.cloud.vertexai.api.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -930,6 +1179,20 @@ protected EndpointServiceFutureStub build( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Updates an Endpoint with a long running operation. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Perform a token counting. + *+ */ + public com.google.cloud.vertexai.api.CountTokensResponse countTokens( + com.google.cloud.vertexai.api.CountTokensRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCountTokensMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Return a list of tokens based on the input text. + *+ */ + public com.google.cloud.vertexai.api.ComputeTokensResponse computeTokens( + com.google.cloud.vertexai.api.ComputeTokensRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeTokensMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service LlmUtilityService. + * + *
+ * Service for LLM related utility functions. + *+ */ public static final class LlmUtilityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub
+ * Perform an online prediction. + *+ */ + public com.google.cloud.vertexai.api.PredictResponse predict( + com.google.cloud.vertexai.api.PredictRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform an online prediction with an arbitrary HTTP payload. + * The response includes the following HTTP headers: + * * `X-Vertex-AI-Endpoint-Id`: ID of the + * [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this + * prediction. + * * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's + * [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this + * prediction. + *+ */ + public com.google.api.HttpBody rawPredict( + com.google.cloud.vertexai.api.RawPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRawPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform a streaming online prediction with an arbitrary HTTP payload. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall, com.google.api.HttpBody> streamRawPredict( + com.google.cloud.vertexai.api.StreamRawPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamRawPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform an unary online prediction request to a gRPC model server for + * Vertex first-party products and frameworks. + *+ */ + public com.google.cloud.vertexai.api.DirectPredictResponse directPredict( + com.google.cloud.vertexai.api.DirectPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDirectPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform an unary online prediction request to a gRPC model server for + * custom containers. + *+ */ + public com.google.cloud.vertexai.api.DirectRawPredictResponse directRawPredict( + com.google.cloud.vertexai.api.DirectRawPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDirectRawPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform a streaming online prediction request to a gRPC model server for + * Vertex first-party products and frameworks. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.vertexai.api.StreamDirectPredictRequest, + com.google.cloud.vertexai.api.StreamDirectPredictResponse> + streamDirectPredict() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamDirectPredictMethod(), getCallOptions()); + } + + /** + * + * + *
+ * Perform a streaming online prediction request to a gRPC model server for + * custom containers. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.vertexai.api.StreamDirectRawPredictRequest, + com.google.cloud.vertexai.api.StreamDirectRawPredictResponse> + streamDirectRawPredict() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamDirectRawPredictMethod(), getCallOptions()); + } + + /** + * + * + *
+ * Perform a streaming online prediction request for Vertex first-party + * products and frameworks. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.vertexai.api.StreamingPredictRequest, + com.google.cloud.vertexai.api.StreamingPredictResponse> + streamingPredict() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamingPredictMethod(), getCallOptions()); + } + + /** + * + * + *
+ * Perform a server-side streaming online prediction request for Vertex + * LLM streaming. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.vertexai.api.StreamingPredictResponse> + serverStreamingPredict(com.google.cloud.vertexai.api.StreamingPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getServerStreamingPredictMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Perform a streaming online prediction request through gRPC. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.vertexai.api.StreamingRawPredictRequest, + com.google.cloud.vertexai.api.StreamingRawPredictResponse> + streamingRawPredict() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamingRawPredictMethod(), getCallOptions()); + } + + /** + * + * + *
+ * Perform an online explanation. + * If + * [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + * is specified, the corresponding DeployModel must have + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * populated. If + * [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + * is not specified, all DeployedModels must have + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * populated. + *+ */ + public com.google.cloud.vertexai.api.ExplainResponse explain( + com.google.cloud.vertexai.api.ExplainRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExplainMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Generate content with multimodal inputs. + *+ */ + public com.google.cloud.vertexai.api.GenerateContentResponse generateContent( + com.google.cloud.vertexai.api.GenerateContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateContentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Generate content with multimodal inputs with streaming support. + *+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall, com.google.cloud.vertexai.api.GenerateContentResponse> + streamGenerateContent(com.google.cloud.vertexai.api.GenerateContentRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamGenerateContentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service PredictionService. + * + *
+ * A service for online predictions and explanations. + *+ */ public static final class PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub
NVIDIA_H100_80GB = 13;
*/
NVIDIA_H100_80GB(13),
+ /**
+ *
+ *
+ * + * Nvidia H100 Mega 80Gb GPU. + *+ * + *
NVIDIA_H100_MEGA_80GB = 14;
+ */
+ NVIDIA_H100_MEGA_80GB(14),
/**
*
*
@@ -275,6 +285,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
* NVIDIA_H100_80GB = 13;
*/
public static final int NVIDIA_H100_80GB_VALUE = 13;
+ /**
+ *
+ *
+ * + * Nvidia H100 Mega 80Gb GPU. + *+ * + *
NVIDIA_H100_MEGA_80GB = 14;
+ */
+ public static final int NVIDIA_H100_MEGA_80GB_VALUE = 14;
/**
*
*
@@ -360,6 +380,8 @@ public static AcceleratorType forNumber(int value) {
return NVIDIA_L4;
case 13:
return NVIDIA_H100_80GB;
+ case 14:
+ return NVIDIA_H100_MEGA_80GB;
case 6:
return TPU_V2;
case 7:
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java
index 7fc2ab05f65b..e394cfda14de 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,21 +37,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n/google/cloud/vertexai/v1/accelerator_t"
- + "ype.proto\022\030google.cloud.vertexai.v1*\263\002\n\017"
+ + "ype.proto\022\030google.cloud.vertexai.v1*\316\002\n\017"
+ "AcceleratorType\022 \n\034ACCELERATOR_TYPE_UNSP"
+ "ECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002\010\001\022\025\n\021N"
+ "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
+ "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
+ "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A10"
+ "0_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_8"
- + "0GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_"
- + "POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\321\001\n\035com.google"
- + ".cloud.vertexai.apiB\024AcceleratorTypeProt"
- + "oP\001Z>cloud.google.com/go/aiplatform/apiv"
- + "1/aiplatformpb;aiplatformpb\252\002\032Google.Clo"
- + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo"
- + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p"
- + "roto3"
+ + "0GB\020\r\022\031\n\025NVIDIA_H100_MEGA_80GB\020\016\022\n\n\006TPU_"
+ + "V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016TPU_"
+ + "V5_LITEPOD\020\014B\321\001\n\035com.google.cloud.vertex"
+ + "ai.apiB\024AcceleratorTypeProtoP\001Z>cloud.go"
+ + "ogle.com/go/aiplatform/apiv1/aiplatformp"
+ + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform"
+ + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl"
+ + "e::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuth.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuth.java
new file mode 100644
index 000000000000..0d30d7792ded
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuth.java
@@ -0,0 +1,1483 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/api_auth.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+/**
+ *
+ *
+ * + * The generic reusable api auth config. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ApiAuth} + */ +public final class ApiAuth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ApiAuth) + ApiAuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiAuth.newBuilder() to construct. + private ApiAuth(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ApiAuth() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiAuth(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ApiAuthProto + .internal_static_google_cloud_vertexai_v1_ApiAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ApiAuthProto + .internal_static_google_cloud_vertexai_v1_ApiAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ApiAuth.class, + com.google.cloud.vertexai.api.ApiAuth.Builder.class); + } + + public interface ApiKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The apiKeySecretVersion.
+ */
+ java.lang.String getApiKeySecretVersion();
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for apiKeySecretVersion.
+ */
+ com.google.protobuf.ByteString getApiKeySecretVersionBytes();
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig} + */ + public static final class ApiKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig) + ApiKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiKeyConfig.newBuilder() to construct. + private ApiKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ApiKeyConfig() { + apiKeySecretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ApiAuthProto + .internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ApiAuthProto + .internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.class, + com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.Builder.class); + } + + public static final int API_KEY_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKeySecretVersion_ = ""; + /** + * + * + *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The apiKeySecretVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getApiKeySecretVersion() {
+ java.lang.Object ref = apiKeySecretVersion_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiKeySecretVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for apiKeySecretVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getApiKeySecretVersionBytes() {
+ java.lang.Object ref = apiKeySecretVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiKeySecretVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeySecretVersion_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeySecretVersion_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig other =
+ (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) obj;
+
+ if (!getApiKeySecretVersion().equals(other.getApiKeySecretVersion())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + API_KEY_SECRET_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getApiKeySecretVersion().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The apiKeySecretVersion.
+ */
+ public java.lang.String getApiKeySecretVersion() {
+ java.lang.Object ref = apiKeySecretVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiKeySecretVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for apiKeySecretVersion.
+ */
+ public com.google.protobuf.ByteString getApiKeySecretVersionBytes() {
+ java.lang.Object ref = apiKeySecretVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiKeySecretVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The apiKeySecretVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiKeySecretVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ apiKeySecretVersion_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearApiKeySecretVersion() {
+ apiKeySecretVersion_ = getDefaultInstance().getApiKeySecretVersion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The SecretManager secret version resource name storing API key.
+ * e.g. projects/{project}/secrets/{secret}/versions/{version}
+ *
+ *
+ *
+ * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for apiKeySecretVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiKeySecretVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ apiKeySecretVersion_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig)
+ private static final com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig();
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return Whether the apiKeyConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasApiKeyConfig() {
+ return authConfigCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return The apiKeyConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig getApiKeyConfig() {
+ if (authConfigCase_ == 1) {
+ return (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_;
+ }
+ return com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() {
+ if (authConfigCase_ == 1) {
+ return (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_;
+ }
+ return com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (authConfigCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (authConfigCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.ApiAuth)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.ApiAuth other = (com.google.cloud.vertexai.api.ApiAuth) obj;
+
+ if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false;
+ switch (authConfigCase_) {
+ case 1:
+ if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (authConfigCase_) {
+ case 1:
+ hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getApiKeyConfig().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.ApiAuth prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The generic reusable api auth config. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ApiAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return Whether the apiKeyConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasApiKeyConfig() {
+ return authConfigCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return The apiKeyConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig getApiKeyConfig() {
+ if (apiKeyConfigBuilder_ == null) {
+ if (authConfigCase_ == 1) {
+ return (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_;
+ }
+ return com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ } else {
+ if (authConfigCase_ == 1) {
+ return apiKeyConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ public Builder setApiKeyConfig(com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig value) {
+ if (apiKeyConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ authConfig_ = value;
+ onChanged();
+ } else {
+ apiKeyConfigBuilder_.setMessage(value);
+ }
+ authConfigCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ public Builder setApiKeyConfig(
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.Builder builderForValue) {
+ if (apiKeyConfigBuilder_ == null) {
+ authConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ apiKeyConfigBuilder_.setMessage(builderForValue.build());
+ }
+ authConfigCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ public Builder mergeApiKeyConfig(com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig value) {
+ if (apiKeyConfigBuilder_ == null) {
+ if (authConfigCase_ == 1
+ && authConfig_
+ != com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance()) {
+ authConfig_ =
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.newBuilder(
+ (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ authConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (authConfigCase_ == 1) {
+ apiKeyConfigBuilder_.mergeFrom(value);
+ } else {
+ apiKeyConfigBuilder_.setMessage(value);
+ }
+ }
+ authConfigCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ public Builder clearApiKeyConfig() {
+ if (apiKeyConfigBuilder_ == null) {
+ if (authConfigCase_ == 1) {
+ authConfigCase_ = 0;
+ authConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (authConfigCase_ == 1) {
+ authConfigCase_ = 0;
+ authConfig_ = null;
+ }
+ apiKeyConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ public com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.Builder getApiKeyConfigBuilder() {
+ return getApiKeyConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() {
+ if ((authConfigCase_ == 1) && (apiKeyConfigBuilder_ != null)) {
+ return apiKeyConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (authConfigCase_ == 1) {
+ return (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_;
+ }
+ return com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig,
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.Builder,
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfigOrBuilder>
+ getApiKeyConfigFieldBuilder() {
+ if (apiKeyConfigBuilder_ == null) {
+ if (!(authConfigCase_ == 1)) {
+ authConfig_ = com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.getDefaultInstance();
+ }
+ apiKeyConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig,
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig.Builder,
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfigOrBuilder>(
+ (com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig) authConfig_,
+ getParentForChildren(),
+ isClean());
+ authConfig_ = null;
+ }
+ authConfigCase_ = 1;
+ onChanged();
+ return apiKeyConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ApiAuth)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ApiAuth)
+ private static final com.google.cloud.vertexai.api.ApiAuth DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ApiAuth();
+ }
+
+ public static com.google.cloud.vertexai.api.ApiAuth getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return Whether the apiKeyConfig field is set.
+ */
+ boolean hasApiKeyConfig();
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ *
+ * @return The apiKeyConfig.
+ */
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfig getApiKeyConfig();
+ /**
+ *
+ *
+ * + * The API secret. + *+ * + *
.google.cloud.vertexai.v1.ApiAuth.ApiKeyConfig api_key_config = 1;
+ */
+ com.google.cloud.vertexai.api.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder();
+
+ com.google.cloud.vertexai.api.ApiAuth.AuthConfigCase getAuthConfigCase();
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuthProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuthProto.java
new file mode 100644
index 000000000000..d522be67c5a7
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ApiAuthProto.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/api_auth.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+public final class ApiAuthProto {
+ private ApiAuthProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_ApiAuth_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_ApiAuth_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\'google/cloud/vertexai/v1/api_auth.prot"
+ + "o\022\030google.cloud.vertexai.v1\032\037google/api/"
+ + "field_behavior.proto\032\031google/api/resourc"
+ + "e.proto\"\306\001\n\007ApiAuth\022H\n\016api_key_config\030\001 "
+ + "\001(\0132..google.cloud.vertexai.v1.ApiAuth.A"
+ + "piKeyConfigH\000\032b\n\014ApiKeyConfig\022R\n\026api_key"
+ + "_secret_version\030\001 \001(\tB2\340A\002\372A,\n*secretman"
+ + "ager.googleapis.com/SecretVersionB\r\n\013aut"
+ + "h_configB\267\002\n\035com.google.cloud.vertexai.a"
+ + "piB\014ApiAuthProtoP\001Z>cloud.google.com/go/"
+ + "aiplatform/apiv1/aiplatformpb;aiplatform"
+ + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google"
+ + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AI"
+ + "Platform::V1\352Ak\n*secretmanager.googleapi"
+ + "s.com/SecretVersion\022=projects/{project}/"
+ + "secrets/{secret}/versions/{secret_versio"
+ + "n}b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ });
+ internal_static_google_cloud_vertexai_v1_ApiAuth_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_vertexai_v1_ApiAuth_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_ApiAuth_descriptor,
+ new java.lang.String[] {
+ "ApiKeyConfig", "AuthConfig",
+ });
+ internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_descriptor =
+ internal_static_google_cloud_vertexai_v1_ApiAuth_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_ApiAuth_ApiKeyConfig_descriptor,
+ new java.lang.String[] {
+ "ApiKeySecretVersion",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resourceDefinition);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Attribution.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Attribution.java
index a2a0ca77aae4..1217e69af1c1 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Attribution.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Attribution.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AttributionOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AttributionOrBuilder.java
index 4cba8c50ede8..f9d4330a904b 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AttributionOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AttributionOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResources.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResources.java
index 40fda7d63e8d..93abef5f7ac8 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResources.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResources.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResourcesOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResourcesOrBuilder.java
index 5abdf3c753f1..3dfbc366aa9c 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResourcesOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutomaticResourcesOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpec.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpec.java
index f30c319189a4..8c9603df8fb5 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpec.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpec.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpecOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpecOrBuilder.java
index 7a03ea9555c1..88ae1c4704f7 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpecOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AutoscalingMetricSpecOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSource.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSource.java
index 8404cea212eb..bc1f6c458df5 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSource.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSourceOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSourceOrBuilder.java
index c7af670d39f5..0e4d0678d27a 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSourceOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AvroSourceOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResources.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResources.java
index b1b005038394..5699f1ad903a 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResources.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResources.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResourcesOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResourcesOrBuilder.java
index 556739ed4b1f..9f4d1157c3ce 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResourcesOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BatchDedicatedResourcesOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestination.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestination.java
index 47c9a2be6d67..e54546b433b1 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestination.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestination.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestinationOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestinationOrBuilder.java
index 31becd5b746f..2b92c1c3190f 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestinationOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQueryDestinationOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySource.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySource.java
index 5f7441ff5c9d..e2b101631711 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySource.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySourceOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySourceOrBuilder.java
index fb4e43d9b543..b98de0dcb9d7 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySourceOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BigQuerySourceOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Blob.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Blob.java
index 230f73fe4ae3..2a3bbad2c63d 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Blob.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Blob.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlobOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlobOrBuilder.java
index 51c74d289dad..fb464a5b1781 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlobOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlobOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfig.java
index f8296828d073..a7e41340e544 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfig.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfig.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfigOrBuilder.java
index df8f172da10a..0676b8e1f580 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfigOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BlurBaselineConfigOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArray.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArray.java
index 0bc0488f4362..bf0b43e57e7c 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArray.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArray.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArrayOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArrayOrBuilder.java
index 2d382d226993..a46663fa3a8b 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArrayOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/BoolArrayOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContent.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContent.java
new file mode 100644
index 000000000000..cea1d0447779
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContent.java
@@ -0,0 +1,5302 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/cached_content.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+/**
+ *
+ *
+ * + * A resource used in LLM queries for users to explicitly specify what to cache + * and how to cache. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CachedContent} + */ +public final class CachedContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.CachedContent) + CachedContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use CachedContent.newBuilder() to construct. + private CachedContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CachedContent() { + name_ = ""; + displayName_ = ""; + model_ = ""; + contents_ = java.util.Collections.emptyList(); + tools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CachedContent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.CachedContentProto + .internal_static_google_cloud_vertexai_v1_CachedContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.CachedContentProto + .internal_static_google_cloud_vertexai_v1_CachedContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.CachedContent.class, + com.google.cloud.vertexai.api.CachedContent.Builder.class); + } + + public interface UsageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.CachedContent.UsageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Total number of tokens that the cached content consumes. + *+ * + *
int32 total_token_count = 1;
+ *
+ * @return The totalTokenCount.
+ */
+ int getTotalTokenCount();
+
+ /**
+ *
+ *
+ * + * Number of text characters. + *+ * + *
int32 text_count = 2;
+ *
+ * @return The textCount.
+ */
+ int getTextCount();
+
+ /**
+ *
+ *
+ * + * Number of images. + *+ * + *
int32 image_count = 3;
+ *
+ * @return The imageCount.
+ */
+ int getImageCount();
+
+ /**
+ *
+ *
+ * + * Duration of video in seconds. + *+ * + *
int32 video_duration_seconds = 4;
+ *
+ * @return The videoDurationSeconds.
+ */
+ int getVideoDurationSeconds();
+
+ /**
+ *
+ *
+ * + * Duration of audio in seconds. + *+ * + *
int32 audio_duration_seconds = 5;
+ *
+ * @return The audioDurationSeconds.
+ */
+ int getAudioDurationSeconds();
+ }
+ /**
+ *
+ *
+ * + * Metadata on the usage of the cached content. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CachedContent.UsageMetadata} + */ + public static final class UsageMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.CachedContent.UsageMetadata) + UsageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageMetadata.newBuilder() to construct. + private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private UsageMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.CachedContentProto + .internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.CachedContentProto + .internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.CachedContent.UsageMetadata.class, + com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder.class); + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 1; + private int totalTokenCount_ = 0; + /** + * + * + *
+ * Total number of tokens that the cached content consumes. + *+ * + *
int32 total_token_count = 1;
+ *
+ * @return The totalTokenCount.
+ */
+ @java.lang.Override
+ public int getTotalTokenCount() {
+ return totalTokenCount_;
+ }
+
+ public static final int TEXT_COUNT_FIELD_NUMBER = 2;
+ private int textCount_ = 0;
+ /**
+ *
+ *
+ * + * Number of text characters. + *+ * + *
int32 text_count = 2;
+ *
+ * @return The textCount.
+ */
+ @java.lang.Override
+ public int getTextCount() {
+ return textCount_;
+ }
+
+ public static final int IMAGE_COUNT_FIELD_NUMBER = 3;
+ private int imageCount_ = 0;
+ /**
+ *
+ *
+ * + * Number of images. + *+ * + *
int32 image_count = 3;
+ *
+ * @return The imageCount.
+ */
+ @java.lang.Override
+ public int getImageCount() {
+ return imageCount_;
+ }
+
+ public static final int VIDEO_DURATION_SECONDS_FIELD_NUMBER = 4;
+ private int videoDurationSeconds_ = 0;
+ /**
+ *
+ *
+ * + * Duration of video in seconds. + *+ * + *
int32 video_duration_seconds = 4;
+ *
+ * @return The videoDurationSeconds.
+ */
+ @java.lang.Override
+ public int getVideoDurationSeconds() {
+ return videoDurationSeconds_;
+ }
+
+ public static final int AUDIO_DURATION_SECONDS_FIELD_NUMBER = 5;
+ private int audioDurationSeconds_ = 0;
+ /**
+ *
+ *
+ * + * Duration of audio in seconds. + *+ * + *
int32 audio_duration_seconds = 5;
+ *
+ * @return The audioDurationSeconds.
+ */
+ @java.lang.Override
+ public int getAudioDurationSeconds() {
+ return audioDurationSeconds_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (totalTokenCount_ != 0) {
+ output.writeInt32(1, totalTokenCount_);
+ }
+ if (textCount_ != 0) {
+ output.writeInt32(2, textCount_);
+ }
+ if (imageCount_ != 0) {
+ output.writeInt32(3, imageCount_);
+ }
+ if (videoDurationSeconds_ != 0) {
+ output.writeInt32(4, videoDurationSeconds_);
+ }
+ if (audioDurationSeconds_ != 0) {
+ output.writeInt32(5, audioDurationSeconds_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (totalTokenCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalTokenCount_);
+ }
+ if (textCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, textCount_);
+ }
+ if (imageCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, imageCount_);
+ }
+ if (videoDurationSeconds_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, videoDurationSeconds_);
+ }
+ if (audioDurationSeconds_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, audioDurationSeconds_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.CachedContent.UsageMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata other =
+ (com.google.cloud.vertexai.api.CachedContent.UsageMetadata) obj;
+
+ if (getTotalTokenCount() != other.getTotalTokenCount()) return false;
+ if (getTextCount() != other.getTextCount()) return false;
+ if (getImageCount() != other.getImageCount()) return false;
+ if (getVideoDurationSeconds() != other.getVideoDurationSeconds()) return false;
+ if (getAudioDurationSeconds() != other.getAudioDurationSeconds()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalTokenCount();
+ hash = (37 * hash) + TEXT_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTextCount();
+ hash = (37 * hash) + IMAGE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getImageCount();
+ hash = (37 * hash) + VIDEO_DURATION_SECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + getVideoDurationSeconds();
+ hash = (37 * hash) + AUDIO_DURATION_SECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + getAudioDurationSeconds();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Metadata on the usage of the cached content. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CachedContent.UsageMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Total number of tokens that the cached content consumes. + *+ * + *
int32 total_token_count = 1;
+ *
+ * @return The totalTokenCount.
+ */
+ @java.lang.Override
+ public int getTotalTokenCount() {
+ return totalTokenCount_;
+ }
+ /**
+ *
+ *
+ * + * Total number of tokens that the cached content consumes. + *+ * + *
int32 total_token_count = 1;
+ *
+ * @param value The totalTokenCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokenCount(int value) {
+
+ totalTokenCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Total number of tokens that the cached content consumes. + *+ * + *
int32 total_token_count = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ totalTokenCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int textCount_;
+ /**
+ *
+ *
+ * + * Number of text characters. + *+ * + *
int32 text_count = 2;
+ *
+ * @return The textCount.
+ */
+ @java.lang.Override
+ public int getTextCount() {
+ return textCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of text characters. + *+ * + *
int32 text_count = 2;
+ *
+ * @param value The textCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTextCount(int value) {
+
+ textCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of text characters. + *+ * + *
int32 text_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTextCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ textCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int imageCount_;
+ /**
+ *
+ *
+ * + * Number of images. + *+ * + *
int32 image_count = 3;
+ *
+ * @return The imageCount.
+ */
+ @java.lang.Override
+ public int getImageCount() {
+ return imageCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of images. + *+ * + *
int32 image_count = 3;
+ *
+ * @param value The imageCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageCount(int value) {
+
+ imageCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of images. + *+ * + *
int32 image_count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearImageCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ imageCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int videoDurationSeconds_;
+ /**
+ *
+ *
+ * + * Duration of video in seconds. + *+ * + *
int32 video_duration_seconds = 4;
+ *
+ * @return The videoDurationSeconds.
+ */
+ @java.lang.Override
+ public int getVideoDurationSeconds() {
+ return videoDurationSeconds_;
+ }
+ /**
+ *
+ *
+ * + * Duration of video in seconds. + *+ * + *
int32 video_duration_seconds = 4;
+ *
+ * @param value The videoDurationSeconds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVideoDurationSeconds(int value) {
+
+ videoDurationSeconds_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Duration of video in seconds. + *+ * + *
int32 video_duration_seconds = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVideoDurationSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ videoDurationSeconds_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int audioDurationSeconds_;
+ /**
+ *
+ *
+ * + * Duration of audio in seconds. + *+ * + *
int32 audio_duration_seconds = 5;
+ *
+ * @return The audioDurationSeconds.
+ */
+ @java.lang.Override
+ public int getAudioDurationSeconds() {
+ return audioDurationSeconds_;
+ }
+ /**
+ *
+ *
+ * + * Duration of audio in seconds. + *+ * + *
int32 audio_duration_seconds = 5;
+ *
+ * @param value The audioDurationSeconds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudioDurationSeconds(int value) {
+
+ audioDurationSeconds_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Duration of audio in seconds. + *+ * + *
int32 audio_duration_seconds = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudioDurationSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ audioDurationSeconds_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.CachedContent.UsageMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.CachedContent.UsageMetadata)
+ private static final com.google.cloud.vertexai.api.CachedContent.UsageMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.CachedContent.UsageMetadata();
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent.UsageMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return expirationCase_ == 9;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expirationCase_ == 9) {
+ return (com.google.protobuf.Timestamp) expiration_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expirationCase_ == 9) {
+ return (com.google.protobuf.Timestamp) expiration_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+
+ public static final int TTL_FIELD_NUMBER = 10;
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return Whether the ttl field is set.
+ */
+ @java.lang.Override
+ public boolean hasTtl() {
+ return expirationCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return The ttl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getTtl() {
+ if (expirationCase_ == 10) {
+ return (com.google.protobuf.Duration) expiration_;
+ }
+ return com.google.protobuf.Duration.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
+ if (expirationCase_ == 10) {
+ return (com.google.protobuf.Duration) expiration_;
+ }
+ return com.google.protobuf.Duration.getDefaultInstance();
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 3;
+ private com.google.cloud.vertexai.api.Content systemInstruction_;
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the systemInstruction field is set.
+ */
+ @java.lang.Override
+ public boolean hasSystemInstruction() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The systemInstruction.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.Content getSystemInstruction() {
+ return systemInstruction_ == null
+ ? com.google.cloud.vertexai.api.Content.getDefaultInstance()
+ : systemInstruction_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ContentOrBuilder getSystemInstructionOrBuilder() {
+ return systemInstruction_ == null
+ ? com.google.cloud.vertexai.api.Content.getDefaultInstance()
+ : systemInstruction_;
+ }
+
+ public static final int CONTENTS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.vertexai.api.ContentOrBuilder>
+ getContentsOrBuilderList() {
+ return contents_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getContentsCount() {
+ return contents_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.Content getContents(int index) {
+ return contents_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ContentOrBuilder getContentsOrBuilder(int index) {
+ return contents_.get(index);
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.vertexai.api.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
+ public static final int TOOL_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.vertexai.api.ToolConfig toolConfig_;
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the toolConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasToolConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The toolConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ToolConfig getToolConfig() {
+ return toolConfig_ == null
+ ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()
+ : toolConfig_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() {
+ return toolConfig_ == null
+ ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()
+ : toolConfig_;
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 7;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 8;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+
+ public static final int USAGE_METADATA_FIELD_NUMBER = 12;
+ private com.google.cloud.vertexai.api.CachedContent.UsageMetadata usageMetadata_;
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the usageMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsageMetadata() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The usageMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.CachedContent.UsageMetadata getUsageMetadata() {
+ return usageMetadata_ == null
+ ? com.google.cloud.vertexai.api.CachedContent.UsageMetadata.getDefaultInstance()
+ : usageMetadata_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder
+ getUsageMetadataOrBuilder() {
+ return usageMetadata_ == null
+ ? com.google.cloud.vertexai.api.CachedContent.UsageMetadata.getDefaultInstance()
+ : usageMetadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getSystemInstruction());
+ }
+ for (int i = 0; i < contents_.size(); i++) {
+ output.writeMessage(4, contents_.get(i));
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(5, tools_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(6, getToolConfig());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(7, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(8, getUpdateTime());
+ }
+ if (expirationCase_ == 9) {
+ output.writeMessage(9, (com.google.protobuf.Timestamp) expiration_);
+ }
+ if (expirationCase_ == 10) {
+ output.writeMessage(10, (com.google.protobuf.Duration) expiration_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(12, getUsageMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSystemInstruction());
+ }
+ for (int i = 0; i < contents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contents_.get(i));
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, tools_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getToolConfig());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
+ }
+ if (expirationCase_ == 9) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 9, (com.google.protobuf.Timestamp) expiration_);
+ }
+ if (expirationCase_ == 10) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10, (com.google.protobuf.Duration) expiration_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUsageMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.CachedContent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.CachedContent other =
+ (com.google.cloud.vertexai.api.CachedContent) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getModel().equals(other.getModel())) return false;
+ if (hasSystemInstruction() != other.hasSystemInstruction()) return false;
+ if (hasSystemInstruction()) {
+ if (!getSystemInstruction().equals(other.getSystemInstruction())) return false;
+ }
+ if (!getContentsList().equals(other.getContentsList())) return false;
+ if (!getToolsList().equals(other.getToolsList())) return false;
+ if (hasToolConfig() != other.hasToolConfig()) return false;
+ if (hasToolConfig()) {
+ if (!getToolConfig().equals(other.getToolConfig())) return false;
+ }
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (hasUpdateTime() != other.hasUpdateTime()) return false;
+ if (hasUpdateTime()) {
+ if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+ }
+ if (hasUsageMetadata() != other.hasUsageMetadata()) return false;
+ if (hasUsageMetadata()) {
+ if (!getUsageMetadata().equals(other.getUsageMetadata())) return false;
+ }
+ if (!getExpirationCase().equals(other.getExpirationCase())) return false;
+ switch (expirationCase_) {
+ case 9:
+ if (!getExpireTime().equals(other.getExpireTime())) return false;
+ break;
+ case 10:
+ if (!getTtl().equals(other.getTtl())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ if (hasSystemInstruction()) {
+ hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSystemInstruction().hashCode();
+ }
+ if (getContentsCount() > 0) {
+ hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getContentsList().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
+ if (hasToolConfig()) {
+ hash = (37 * hash) + TOOL_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getToolConfig().hashCode();
+ }
+ if (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ if (hasUpdateTime()) {
+ hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateTime().hashCode();
+ }
+ if (hasUsageMetadata()) {
+ hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getUsageMetadata().hashCode();
+ }
+ switch (expirationCase_) {
+ case 9:
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + TTL_FIELD_NUMBER;
+ hash = (53 * hash) + getTtl().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.CachedContent prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A resource used in LLM queries for users to explicitly specify what to cache + * and how to cache. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CachedContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return expirationCase_ == 9;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ if (expirationCase_ == 9) {
+ return (com.google.protobuf.Timestamp) expiration_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ } else {
+ if (expirationCase_ == 9) {
+ return expireTimeBuilder_.getMessage();
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expiration_ = value;
+ onChanged();
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ expirationCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expiration_ = builderForValue.build();
+ onChanged();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+ expirationCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (expirationCase_ == 9
+ && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ expiration_ =
+ com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expiration_ = value;
+ }
+ onChanged();
+ } else {
+ if (expirationCase_ == 9) {
+ expireTimeBuilder_.mergeFrom(value);
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ }
+ expirationCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ public Builder clearExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ if (expirationCase_ == 9) {
+ expirationCase_ = 0;
+ expiration_ = null;
+ onChanged();
+ }
+ } else {
+ if (expirationCase_ == 9) {
+ expirationCase_ = 0;
+ expiration_ = null;
+ }
+ expireTimeBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if ((expirationCase_ == 9) && (expireTimeBuilder_ != null)) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ if (expirationCase_ == 9) {
+ return (com.google.protobuf.Timestamp) expiration_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ if (!(expirationCase_ == 9)) {
+ expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
+ expiration_ = null;
+ }
+ expirationCase_ = 9;
+ onChanged();
+ return expireTimeBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ ttlBuilder_;
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return Whether the ttl field is set.
+ */
+ @java.lang.Override
+ public boolean hasTtl() {
+ return expirationCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return The ttl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getTtl() {
+ if (ttlBuilder_ == null) {
+ if (expirationCase_ == 10) {
+ return (com.google.protobuf.Duration) expiration_;
+ }
+ return com.google.protobuf.Duration.getDefaultInstance();
+ } else {
+ if (expirationCase_ == 10) {
+ return ttlBuilder_.getMessage();
+ }
+ return com.google.protobuf.Duration.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ public Builder setTtl(com.google.protobuf.Duration value) {
+ if (ttlBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expiration_ = value;
+ onChanged();
+ } else {
+ ttlBuilder_.setMessage(value);
+ }
+ expirationCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+ if (ttlBuilder_ == null) {
+ expiration_ = builderForValue.build();
+ onChanged();
+ } else {
+ ttlBuilder_.setMessage(builderForValue.build());
+ }
+ expirationCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ public Builder mergeTtl(com.google.protobuf.Duration value) {
+ if (ttlBuilder_ == null) {
+ if (expirationCase_ == 10
+ && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ expiration_ =
+ com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expiration_ = value;
+ }
+ onChanged();
+ } else {
+ if (expirationCase_ == 10) {
+ ttlBuilder_.mergeFrom(value);
+ } else {
+ ttlBuilder_.setMessage(value);
+ }
+ }
+ expirationCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ public Builder clearTtl() {
+ if (ttlBuilder_ == null) {
+ if (expirationCase_ == 10) {
+ expirationCase_ = 0;
+ expiration_ = null;
+ onChanged();
+ }
+ } else {
+ if (expirationCase_ == 10) {
+ expirationCase_ = 0;
+ expiration_ = null;
+ }
+ ttlBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ public com.google.protobuf.Duration.Builder getTtlBuilder() {
+ return getTtlFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
+ if ((expirationCase_ == 10) && (ttlBuilder_ != null)) {
+ return ttlBuilder_.getMessageOrBuilder();
+ } else {
+ if (expirationCase_ == 10) {
+ return (com.google.protobuf.Duration) expiration_;
+ }
+ return com.google.protobuf.Duration.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getTtlFieldBuilder() {
+ if (ttlBuilder_ == null) {
+ if (!(expirationCase_ == 10)) {
+ expiration_ = com.google.protobuf.Duration.getDefaultInstance();
+ }
+ ttlBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
+ expiration_ = null;
+ }
+ expirationCase_ = 10;
+ onChanged();
+ return ttlBuilder_;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ model_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.vertexai.api.Content systemInstruction_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.Content,
+ com.google.cloud.vertexai.api.Content.Builder,
+ com.google.cloud.vertexai.api.ContentOrBuilder>
+ systemInstructionBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the systemInstruction field is set.
+ */
+ public boolean hasSystemInstruction() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The systemInstruction.
+ */
+ public com.google.cloud.vertexai.api.Content getSystemInstruction() {
+ if (systemInstructionBuilder_ == null) {
+ return systemInstruction_ == null
+ ? com.google.cloud.vertexai.api.Content.getDefaultInstance()
+ : systemInstruction_;
+ } else {
+ return systemInstructionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setSystemInstruction(com.google.cloud.vertexai.api.Content value) {
+ if (systemInstructionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ systemInstruction_ = value;
+ } else {
+ systemInstructionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setSystemInstruction(
+ com.google.cloud.vertexai.api.Content.Builder builderForValue) {
+ if (systemInstructionBuilder_ == null) {
+ systemInstruction_ = builderForValue.build();
+ } else {
+ systemInstructionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder mergeSystemInstruction(com.google.cloud.vertexai.api.Content value) {
+ if (systemInstructionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && systemInstruction_ != null
+ && systemInstruction_ != com.google.cloud.vertexai.api.Content.getDefaultInstance()) {
+ getSystemInstructionBuilder().mergeFrom(value);
+ } else {
+ systemInstruction_ = value;
+ }
+ } else {
+ systemInstructionBuilder_.mergeFrom(value);
+ }
+ if (systemInstruction_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder clearSystemInstruction() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ systemInstruction_ = null;
+ if (systemInstructionBuilder_ != null) {
+ systemInstructionBuilder_.dispose();
+ systemInstructionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Content.Builder getSystemInstructionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSystemInstructionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ContentOrBuilder getSystemInstructionOrBuilder() {
+ if (systemInstructionBuilder_ != null) {
+ return systemInstructionBuilder_.getMessageOrBuilder();
+ } else {
+ return systemInstruction_ == null
+ ? com.google.cloud.vertexai.api.Content.getDefaultInstance()
+ : systemInstruction_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.Content,
+ com.google.cloud.vertexai.api.Content.Builder,
+ com.google.cloud.vertexai.api.ContentOrBuilder>
+ getSystemInstructionFieldBuilder() {
+ if (systemInstructionBuilder_ == null) {
+ systemInstructionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.Content,
+ com.google.cloud.vertexai.api.Content.Builder,
+ com.google.cloud.vertexai.api.ContentOrBuilder>(
+ getSystemInstruction(), getParentForChildren(), isClean());
+ systemInstruction_ = null;
+ }
+ return systemInstructionBuilder_;
+ }
+
+ private java.util.List+ * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public int getContentsCount() {
+ if (contentsBuilder_ == null) {
+ return contents_.size();
+ } else {
+ return contentsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Content getContents(int index) {
+ if (contentsBuilder_ == null) {
+ return contents_.get(index);
+ } else {
+ return contentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setContents(int index, com.google.cloud.vertexai.api.Content value) {
+ if (contentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureContentsIsMutable();
+ contents_.set(index, value);
+ onChanged();
+ } else {
+ contentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setContents(
+ int index, com.google.cloud.vertexai.api.Content.Builder builderForValue) {
+ if (contentsBuilder_ == null) {
+ ensureContentsIsMutable();
+ contents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ contentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addContents(com.google.cloud.vertexai.api.Content value) {
+ if (contentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureContentsIsMutable();
+ contents_.add(value);
+ onChanged();
+ } else {
+ contentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addContents(int index, com.google.cloud.vertexai.api.Content value) {
+ if (contentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureContentsIsMutable();
+ contents_.add(index, value);
+ onChanged();
+ } else {
+ contentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addContents(com.google.cloud.vertexai.api.Content.Builder builderForValue) {
+ if (contentsBuilder_ == null) {
+ ensureContentsIsMutable();
+ contents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ contentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addContents(
+ int index, com.google.cloud.vertexai.api.Content.Builder builderForValue) {
+ if (contentsBuilder_ == null) {
+ ensureContentsIsMutable();
+ contents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ contentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addAllContents(
+ java.lang.Iterable extends com.google.cloud.vertexai.api.Content> values) {
+ if (contentsBuilder_ == null) {
+ ensureContentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_);
+ onChanged();
+ } else {
+ contentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder clearContents() {
+ if (contentsBuilder_ == null) {
+ contents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ contentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder removeContents(int index) {
+ if (contentsBuilder_ == null) {
+ ensureContentsIsMutable();
+ contents_.remove(index);
+ onChanged();
+ } else {
+ contentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Content.Builder getContentsBuilder(int index) {
+ return getContentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ContentOrBuilder getContentsOrBuilder(int index) {
+ if (contentsBuilder_ == null) {
+ return contents_.get(index);
+ } else {
+ return contentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.vertexai.api.ContentOrBuilder>
+ getContentsOrBuilderList() {
+ if (contentsBuilder_ != null) {
+ return contentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(contents_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Content.Builder addContentsBuilder() {
+ return getContentsFieldBuilder()
+ .addBuilder(com.google.cloud.vertexai.api.Content.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Content.Builder addContentsBuilder(int index) {
+ return getContentsFieldBuilder()
+ .addBuilder(index, com.google.cloud.vertexai.api.Content.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public int getToolsCount() {
+ if (toolsBuilder_ == null) {
+ return tools_.size();
+ } else {
+ return toolsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Tool getTools(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.vertexai.api.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.set(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.vertexai.api.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addTools(com.google.cloud.vertexai.api.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.vertexai.api.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addTools(com.google.cloud.vertexai.api.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.vertexai.api.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder addAllTools(
+ java.lang.Iterable extends com.google.cloud.vertexai.api.Tool> values) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_);
+ onChanged();
+ } else {
+ toolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder clearTools() {
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ toolsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder removeTools(int index) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.remove(index);
+ onChanged();
+ } else {
+ toolsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Tool.Builder getToolsBuilder(int index) {
+ return getToolsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.vertexai.api.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ if (toolsBuilder_ != null) {
+ return toolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tools_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Tool.Builder addToolsBuilder() {
+ return getToolsFieldBuilder()
+ .addBuilder(com.google.cloud.vertexai.api.Tool.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.Tool.Builder addToolsBuilder(int index) {
+ return getToolsFieldBuilder()
+ .addBuilder(index, com.google.cloud.vertexai.api.Tool.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the toolConfig field is set.
+ */
+ public boolean hasToolConfig() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The toolConfig.
+ */
+ public com.google.cloud.vertexai.api.ToolConfig getToolConfig() {
+ if (toolConfigBuilder_ == null) {
+ return toolConfig_ == null
+ ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()
+ : toolConfig_;
+ } else {
+ return toolConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig value) {
+ if (toolConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ toolConfig_ = value;
+ } else {
+ toolConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig.Builder builderForValue) {
+ if (toolConfigBuilder_ == null) {
+ toolConfig_ = builderForValue.build();
+ } else {
+ toolConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder mergeToolConfig(com.google.cloud.vertexai.api.ToolConfig value) {
+ if (toolConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && toolConfig_ != null
+ && toolConfig_ != com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) {
+ getToolConfigBuilder().mergeFrom(value);
+ } else {
+ toolConfig_ = value;
+ }
+ } else {
+ toolConfigBuilder_.mergeFrom(value);
+ }
+ if (toolConfig_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public Builder clearToolConfig() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ toolConfig_ = null;
+ if (toolConfigBuilder_ != null) {
+ toolConfigBuilder_.dispose();
+ toolConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ToolConfig.Builder getToolConfigBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getToolConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() {
+ if (toolConfigBuilder_ != null) {
+ return toolConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return toolConfig_ == null
+ ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()
+ : toolConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ToolConfig,
+ com.google.cloud.vertexai.api.ToolConfig.Builder,
+ com.google.cloud.vertexai.api.ToolConfigOrBuilder>
+ getToolConfigFieldBuilder() {
+ if (toolConfigBuilder_ == null) {
+ toolConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ToolConfig,
+ com.google.cloud.vertexai.api.ToolConfig.Builder,
+ com.google.cloud.vertexai.api.ToolConfigOrBuilder>(
+ getToolConfig(), getParentForChildren(), isClean());
+ toolConfig_ = null;
+ }
+ return toolConfigBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ if (createTime_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
+ * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
+ * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private com.google.cloud.vertexai.api.CachedContent.UsageMetadata usageMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder>
+ usageMetadataBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the usageMetadata field is set.
+ */
+ public boolean hasUsageMetadata() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The usageMetadata.
+ */
+ public com.google.cloud.vertexai.api.CachedContent.UsageMetadata getUsageMetadata() {
+ if (usageMetadataBuilder_ == null) {
+ return usageMetadata_ == null
+ ? com.google.cloud.vertexai.api.CachedContent.UsageMetadata.getDefaultInstance()
+ : usageMetadata_;
+ } else {
+ return usageMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUsageMetadata(
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata value) {
+ if (usageMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usageMetadata_ = value;
+ } else {
+ usageMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUsageMetadata(
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder builderForValue) {
+ if (usageMetadataBuilder_ == null) {
+ usageMetadata_ = builderForValue.build();
+ } else {
+ usageMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUsageMetadata(
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata value) {
+ if (usageMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && usageMetadata_ != null
+ && usageMetadata_
+ != com.google.cloud.vertexai.api.CachedContent.UsageMetadata.getDefaultInstance()) {
+ getUsageMetadataBuilder().mergeFrom(value);
+ } else {
+ usageMetadata_ = value;
+ }
+ } else {
+ usageMetadataBuilder_.mergeFrom(value);
+ }
+ if (usageMetadata_ != null) {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUsageMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ usageMetadata_ = null;
+ if (usageMetadataBuilder_ != null) {
+ usageMetadataBuilder_.dispose();
+ usageMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder
+ getUsageMetadataBuilder() {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return getUsageMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder
+ getUsageMetadataOrBuilder() {
+ if (usageMetadataBuilder_ != null) {
+ return usageMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return usageMetadata_ == null
+ ? com.google.cloud.vertexai.api.CachedContent.UsageMetadata.getDefaultInstance()
+ : usageMetadata_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder>
+ getUsageMetadataFieldBuilder() {
+ if (usageMetadataBuilder_ == null) {
+ usageMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata.Builder,
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder>(
+ getUsageMetadata(), getParentForChildren(), isClean());
+ usageMetadata_ = null;
+ }
+ return usageMetadataBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.CachedContent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.CachedContent)
+ private static final com.google.cloud.vertexai.api.CachedContent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.CachedContent();
+ }
+
+ public static com.google.cloud.vertexai.api.CachedContent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return Whether the expireTime field is set.
+ */
+ boolean hasExpireTime();
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ *
+ * @return The expireTime.
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+ /**
+ *
+ *
+ * + * Timestamp of when this resource is considered expired. + * This is *always* provided on output, regardless of what was sent + * on input. + *+ * + *
.google.protobuf.Timestamp expire_time = 9;
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return Whether the ttl field is set.
+ */
+ boolean hasTtl();
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ *
+ * @return The ttl.
+ */
+ com.google.protobuf.Duration getTtl();
+ /**
+ *
+ *
+ * + * Input only. The TTL for this resource. The expiration time is computed: + * now + TTL. + *+ * + *
.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Immutable. Identifier. The server-generated resource name of the cached
+ * content Format:
+ * projects/{project}/locations/{location}/cachedContents/{cached_content}
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * Optional. Immutable. The user-generated meaningful display name of the + * cached content. + *+ * + *
+ * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
+ *
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ *
+ *
+ *
+ * Immutable. The name of the publisher model to use for cached content.
+ * Format:
+ * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString getModelBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the systemInstruction field is set.
+ */
+ boolean hasSystemInstruction();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The systemInstruction.
+ */
+ com.google.cloud.vertexai.api.Content getSystemInstruction();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Developer set system instruction. + * Currently, text only + *+ * + *
+ * .google.cloud.vertexai.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ContentOrBuilder getSystemInstructionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ java.util.List+ * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.Content getContents(int index);
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ int getContentsCount();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.vertexai.api.ContentOrBuilder>
+ getContentsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. The content to cache + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ContentOrBuilder getContentsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ java.util.List+ * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.Tool getTools(int index);
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ int getToolsCount();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.vertexai.api.ToolOrBuilder> getToolsOrBuilderList();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. A list of `Tools` the model may use to + * generate the next response + *+ * + *
+ * repeated .google.cloud.vertexai.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return Whether the toolConfig field is set.
+ */
+ boolean hasToolConfig();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ *
+ * @return The toolConfig.
+ */
+ com.google.cloud.vertexai.api.ToolConfig getToolConfig();
+ /**
+ *
+ *
+ * + * Optional. Input only. Immutable. Tool config. This config is shared for all + * tools + *+ * + *
+ * .google.cloud.vertexai.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * Output only. Creatation time of the cache entry. + *+ * + *
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. When the cache entry was last updated in UTC time. + *+ * + *
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the usageMetadata field is set.
+ */
+ boolean hasUsageMetadata();
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The usageMetadata.
+ */
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadata getUsageMetadata();
+ /**
+ *
+ *
+ * + * Output only. Metadata on the usage of the cached content. + *+ * + *
+ * .google.cloud.vertexai.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.CachedContent.UsageMetadataOrBuilder getUsageMetadataOrBuilder();
+
+ com.google.cloud.vertexai.api.CachedContent.ExpirationCase getExpirationCase();
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContentProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContentProto.java
new file mode 100644
index 000000000000..21bdc848df23
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContentProto.java
@@ -0,0 +1,144 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/cached_content.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+public final class CachedContentProto {
+ private CachedContentProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_CachedContent_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_CachedContent_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n-google/cloud/vertexai/v1/cached_conten"
+ + "t.proto\022\030google.cloud.vertexai.v1\032\037googl"
+ + "e/api/field_behavior.proto\032\031google/api/r"
+ + "esource.proto\032&google/cloud/vertexai/v1/"
+ + "content.proto\032#google/cloud/vertexai/v1/"
+ + "tool.proto\032\036google/protobuf/duration.pro"
+ + "to\032\037google/protobuf/timestamp.proto\"\277\007\n\r"
+ + "CachedContent\0221\n\013expire_time\030\t \001(\0132\032.goo"
+ + "gle.protobuf.TimestampH\000\022-\n\003ttl\030\n \001(\0132\031."
+ + "google.protobuf.DurationB\003\340A\004H\000\022\024\n\004name\030"
+ + "\001 \001(\tB\006\340A\010\340A\005\022\034\n\014display_name\030\013 \001(\tB\006\340A\001"
+ + "\340A\005\022\022\n\005model\030\002 \001(\tB\003\340A\005\022H\n\022system_instru"
+ + "ction\030\003 \001(\0132!.google.cloud.vertexai.v1.C"
+ + "ontentB\t\340A\001\340A\005\340A\004\022>\n\010contents\030\004 \003(\0132!.go"
+ + "ogle.cloud.vertexai.v1.ContentB\t\340A\001\340A\005\340A"
+ + "\004\0228\n\005tools\030\005 \003(\0132\036.google.cloud.vertexai"
+ + ".v1.ToolB\t\340A\001\340A\005\340A\004\022D\n\013tool_config\030\006 \001(\013"
+ + "2$.google.cloud.vertexai.v1.ToolConfigB\t"
+ + "\340A\001\340A\005\340A\004\0224\n\013create_time\030\007 \001(\0132\032.google."
+ + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022R\n"
+ + "\016usage_metadata\030\014 \001(\01325.google.cloud.ver"
+ + "texai.v1.CachedContent.UsageMetadataB\003\340A"
+ + "\003\032\223\001\n\rUsageMetadata\022\031\n\021total_token_count"
+ + "\030\001 \001(\005\022\022\n\ntext_count\030\002 \001(\005\022\023\n\013image_coun"
+ + "t\030\003 \001(\005\022\036\n\026video_duration_seconds\030\004 \001(\005\022"
+ + "\036\n\026audio_duration_seconds\030\005 \001(\005:\225\001\352A\221\001\n\'"
+ + "aiplatform.googleapis.com/CachedContent\022"
+ + "Gprojects/{project}/locations/{location}"
+ + "/cachedContents/{cached_content}*\016cached"
+ + "Contents2\rcachedContentB\014\n\nexpirationB\317\001"
+ + "\n\035com.google.cloud.vertexai.apiB\022CachedC"
+ + "ontentProtoP\001Z>cloud.google.com/go/aipla"
+ + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032"
+ + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou"
+ + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf"
+ + "orm::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.vertexai.api.ContentProto.getDescriptor(),
+ com.google.cloud.vertexai.api.ToolProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ });
+ internal_static_google_cloud_vertexai_v1_CachedContent_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_vertexai_v1_CachedContent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_CachedContent_descriptor,
+ new java.lang.String[] {
+ "ExpireTime",
+ "Ttl",
+ "Name",
+ "DisplayName",
+ "Model",
+ "SystemInstruction",
+ "Contents",
+ "Tools",
+ "ToolConfig",
+ "CreateTime",
+ "UpdateTime",
+ "UsageMetadata",
+ "Expiration",
+ });
+ internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_descriptor =
+ internal_static_google_cloud_vertexai_v1_CachedContent_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_CachedContent_UsageMetadata_descriptor,
+ new java.lang.String[] {
+ "TotalTokenCount",
+ "TextCount",
+ "ImageCount",
+ "VideoDurationSeconds",
+ "AudioDurationSeconds",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resource);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.vertexai.api.ContentProto.getDescriptor();
+ com.google.cloud.vertexai.api.ToolProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java
index decf263dc204..cb7ecd3edcf2 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Candidate.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -496,6 +496,62 @@ public double getAvgLogprobs() {
return avgLogprobs_;
}
+ public static final int LOGPROBS_RESULT_FIELD_NUMBER = 10;
+ private com.google.cloud.vertexai.api.LogprobsResult logprobsResult_;
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.LogprobsResult getLogprobsResult() {
+ return logprobsResult_ == null
+ ? com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.LogprobsResultOrBuilder getLogprobsResultOrBuilder() {
+ return logprobsResult_ == null
+ ? com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+
public static final int FINISH_REASON_FIELD_NUMBER = 3;
private int finishReason_ = 0;
/**
@@ -648,7 +704,7 @@ public com.google.cloud.vertexai.api.SafetyRatingOrBuilder getSafetyRatingsOrBui
*/
@java.lang.Override
public boolean hasFinishMessage() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
*
@@ -716,7 +772,7 @@ public com.google.protobuf.ByteString getFinishMessageBytes() {
*/
@java.lang.Override
public boolean hasCitationMetadata() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
*
@@ -772,7 +828,7 @@ public com.google.cloud.vertexai.api.CitationMetadataOrBuilder getCitationMetada
*/
@java.lang.Override
public boolean hasGroundingMetadata() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -839,13 +895,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < safetyRatings_.size(); i++) {
output.writeMessage(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
@@ -854,6 +910,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
output.writeDouble(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(10, getLogprobsResult());
+ }
getUnknownFields().writeTo(output);
}
@@ -877,13 +936,13 @@ public int getSerializedSize() {
for (int i = 0; i < safetyRatings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, safetyRatings_.get(i));
}
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, finishMessage_);
}
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCitationMetadata());
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGroundingMetadata());
}
if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
@@ -892,6 +951,9 @@ public int getSerializedSize() {
if (java.lang.Double.doubleToRawLongBits(avgLogprobs_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, avgLogprobs_);
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLogprobsResult());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -916,6 +978,10 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(other.getScore())) return false;
if (java.lang.Double.doubleToLongBits(getAvgLogprobs())
!= java.lang.Double.doubleToLongBits(other.getAvgLogprobs())) return false;
+ if (hasLogprobsResult() != other.hasLogprobsResult()) return false;
+ if (hasLogprobsResult()) {
+ if (!getLogprobsResult().equals(other.getLogprobsResult())) return false;
+ }
if (finishReason_ != other.finishReason_) return false;
if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false;
if (hasFinishMessage() != other.hasFinishMessage()) return false;
@@ -956,6 +1022,10 @@ public int hashCode() {
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAvgLogprobs()));
+ if (hasLogprobsResult()) {
+ hash = (37 * hash) + LOGPROBS_RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getLogprobsResult().hashCode();
+ }
hash = (37 * hash) + FINISH_REASON_FIELD_NUMBER;
hash = (53 * hash) + finishReason_;
if (getSafetyRatingsCount() > 0) {
@@ -1115,6 +1185,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getContentFieldBuilder();
+ getLogprobsResultFieldBuilder();
getSafetyRatingsFieldBuilder();
getCitationMetadataFieldBuilder();
getGroundingMetadataFieldBuilder();
@@ -1133,6 +1204,11 @@ public Builder clear() {
}
score_ = 0D;
avgLogprobs_ = 0D;
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
finishReason_ = 0;
if (safetyRatingsBuilder_ == null) {
safetyRatings_ = java.util.Collections.emptyList();
@@ -1140,7 +1216,7 @@ public Builder clear() {
safetyRatings_ = null;
safetyRatingsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
finishMessage_ = "";
citationMetadata_ = null;
if (citationMetadataBuilder_ != null) {
@@ -1189,9 +1265,9 @@ public com.google.cloud.vertexai.api.Candidate buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.vertexai.api.Candidate result) {
if (safetyRatingsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)) {
+ if (((bitField0_ & 0x00000040) != 0)) {
safetyRatings_ = java.util.Collections.unmodifiableList(safetyRatings_);
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
}
result.safetyRatings_ = safetyRatings_;
} else {
@@ -1216,23 +1292,28 @@ private void buildPartial0(com.google.cloud.vertexai.api.Candidate result) {
result.avgLogprobs_ = avgLogprobs_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.logprobsResult_ =
+ logprobsResultBuilder_ == null ? logprobsResult_ : logprobsResultBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishReason_ = finishReason_;
}
- if (((from_bitField0_ & 0x00000040) != 0)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
result.finishMessage_ = finishMessage_;
- to_bitField0_ |= 0x00000002;
+ to_bitField0_ |= 0x00000004;
}
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.citationMetadata_ =
citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00000100) != 0)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.groundingMetadata_ =
groundingMetadataBuilder_ == null
? groundingMetadata_
: groundingMetadataBuilder_.build();
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1294,6 +1375,9 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Candidate other) {
if (other.getAvgLogprobs() != 0D) {
setAvgLogprobs(other.getAvgLogprobs());
}
+ if (other.hasLogprobsResult()) {
+ mergeLogprobsResult(other.getLogprobsResult());
+ }
if (other.finishReason_ != 0) {
setFinishReasonValue(other.getFinishReasonValue());
}
@@ -1301,7 +1385,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Candidate other) {
if (!other.safetyRatings_.isEmpty()) {
if (safetyRatings_.isEmpty()) {
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSafetyRatingsIsMutable();
safetyRatings_.addAll(other.safetyRatings_);
@@ -1314,7 +1398,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Candidate other) {
safetyRatingsBuilder_.dispose();
safetyRatingsBuilder_ = null;
safetyRatings_ = other.safetyRatings_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
safetyRatingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSafetyRatingsFieldBuilder()
@@ -1326,7 +1410,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Candidate other) {
}
if (other.hasFinishMessage()) {
finishMessage_ = other.finishMessage_;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasCitationMetadata()) {
@@ -1376,7 +1460,7 @@ public Builder mergeFrom(
case 24:
{
finishReason_ = input.readEnum();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 24
case 34:
@@ -1395,21 +1479,21 @@ public Builder mergeFrom(
case 42:
{
finishMessage_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 42
case 50:
{
input.readMessage(
getCitationMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 50
case 58:
{
input.readMessage(
getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 58
case 65:
@@ -1424,6 +1508,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 73
+ case 82:
+ {
+ input.readMessage(getLogprobsResultFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 82
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1805,6 +1895,211 @@ public Builder clearAvgLogprobs() {
return this;
}
+ private com.google.cloud.vertexai.api.LogprobsResult logprobsResult_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.LogprobsResult,
+ com.google.cloud.vertexai.api.LogprobsResult.Builder,
+ com.google.cloud.vertexai.api.LogprobsResultOrBuilder>
+ logprobsResultBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ public boolean hasLogprobsResult() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ public com.google.cloud.vertexai.api.LogprobsResult getLogprobsResult() {
+ if (logprobsResultBuilder_ == null) {
+ return logprobsResult_ == null
+ ? com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ } else {
+ return logprobsResultBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(com.google.cloud.vertexai.api.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ logprobsResult_ = value;
+ } else {
+ logprobsResultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLogprobsResult(
+ com.google.cloud.vertexai.api.LogprobsResult.Builder builderForValue) {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResult_ = builderForValue.build();
+ } else {
+ logprobsResultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLogprobsResult(com.google.cloud.vertexai.api.LogprobsResult value) {
+ if (logprobsResultBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && logprobsResult_ != null
+ && logprobsResult_
+ != com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()) {
+ getLogprobsResultBuilder().mergeFrom(value);
+ } else {
+ logprobsResult_ = value;
+ }
+ } else {
+ logprobsResultBuilder_.mergeFrom(value);
+ }
+ if (logprobsResult_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLogprobsResult() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ logprobsResult_ = null;
+ if (logprobsResultBuilder_ != null) {
+ logprobsResultBuilder_.dispose();
+ logprobsResultBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.LogprobsResult.Builder getLogprobsResultBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getLogprobsResultFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.LogprobsResultOrBuilder getLogprobsResultOrBuilder() {
+ if (logprobsResultBuilder_ != null) {
+ return logprobsResultBuilder_.getMessageOrBuilder();
+ } else {
+ return logprobsResult_ == null
+ ? com.google.cloud.vertexai.api.LogprobsResult.getDefaultInstance()
+ : logprobsResult_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.LogprobsResult,
+ com.google.cloud.vertexai.api.LogprobsResult.Builder,
+ com.google.cloud.vertexai.api.LogprobsResultOrBuilder>
+ getLogprobsResultFieldBuilder() {
+ if (logprobsResultBuilder_ == null) {
+ logprobsResultBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.LogprobsResult,
+ com.google.cloud.vertexai.api.LogprobsResult.Builder,
+ com.google.cloud.vertexai.api.LogprobsResultOrBuilder>(
+ getLogprobsResult(), getParentForChildren(), isClean());
+ logprobsResult_ = null;
+ }
+ return logprobsResultBuilder_;
+ }
+
private int finishReason_ = 0;
/**
*
@@ -1841,7 +2136,7 @@ public int getFinishReasonValue() {
*/
public Builder setFinishReasonValue(int value) {
finishReason_ = value;
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1886,7 +2181,7 @@ public Builder setFinishReason(com.google.cloud.vertexai.api.Candidate.FinishRea
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
finishReason_ = value.getNumber();
onChanged();
return this;
@@ -1906,7 +2201,7 @@ public Builder setFinishReason(com.google.cloud.vertexai.api.Candidate.FinishRea
* @return This builder for chaining.
*/
public Builder clearFinishReason() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
finishReason_ = 0;
onChanged();
return this;
@@ -1916,10 +2211,10 @@ public Builder clearFinishReason() {
java.util.Collections.emptyList();
private void ensureSafetyRatingsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
+ if (!((bitField0_ & 0x00000040) != 0)) {
safetyRatings_ =
new java.util.ArrayList+ * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the logprobsResult field is set.
+ */
+ boolean hasLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The logprobsResult.
+ */
+ com.google.cloud.vertexai.api.LogprobsResult getLogprobsResult();
+ /**
+ *
+ *
+ * + * Output only. Log-likelihood scores for the response tokens and top tokens + *+ * + *
+ * .google.cloud.vertexai.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.LogprobsResultOrBuilder getLogprobsResultOrBuilder();
+
/**
*
*
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Citation.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Citation.java
index 7a87d0f1428d..1baf58914470 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Citation.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Citation.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadata.java
index f1ab24a591df..5da4b7eb7ebf 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadata.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadata.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadataOrBuilder.java
index b7d375133064..90dadc367b52 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadataOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationMetadataOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationOrBuilder.java
index d88a19d96b4d..484b24fcca54 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CitationOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ClientConnectionConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ClientConnectionConfig.java
new file mode 100644
index 000000000000..89b460f375c9
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ClientConnectionConfig.java
@@ -0,0 +1,723 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/endpoint.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+/**
+ *
+ *
+ * + * Configurations (e.g. inference timeout) that are applied on your endpoints. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ClientConnectionConfig} + */ +public final class ClientConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ClientConnectionConfig) + ClientConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientConnectionConfig.newBuilder() to construct. + private ClientConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ClientConnectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.EndpointProto + .internal_static_google_cloud_vertexai_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.EndpointProto + .internal_static_google_cloud_vertexai_v1_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ClientConnectionConfig.class, + com.google.cloud.vertexai.api.ClientConnectionConfig.Builder.class); + } + + private int bitField0_; + public static final int INFERENCE_TIMEOUT_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inferenceTimeout_; + /** + * + * + *
+ * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return Whether the inferenceTimeout field is set.
+ */
+ @java.lang.Override
+ public boolean hasInferenceTimeout() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return The inferenceTimeout.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getInferenceTimeout() {
+ return inferenceTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : inferenceTimeout_;
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() {
+ return inferenceTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : inferenceTimeout_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getInferenceTimeout());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInferenceTimeout());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.ClientConnectionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.ClientConnectionConfig other =
+ (com.google.cloud.vertexai.api.ClientConnectionConfig) obj;
+
+ if (hasInferenceTimeout() != other.hasInferenceTimeout()) return false;
+ if (hasInferenceTimeout()) {
+ if (!getInferenceTimeout().equals(other.getInferenceTimeout())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInferenceTimeout()) {
+ hash = (37 * hash) + INFERENCE_TIMEOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getInferenceTimeout().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.ClientConnectionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Configurations (e.g. inference timeout) that are applied on your endpoints. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.ClientConnectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return Whether the inferenceTimeout field is set.
+ */
+ public boolean hasInferenceTimeout() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return The inferenceTimeout.
+ */
+ public com.google.protobuf.Duration getInferenceTimeout() {
+ if (inferenceTimeoutBuilder_ == null) {
+ return inferenceTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : inferenceTimeout_;
+ } else {
+ return inferenceTimeoutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public Builder setInferenceTimeout(com.google.protobuf.Duration value) {
+ if (inferenceTimeoutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inferenceTimeout_ = value;
+ } else {
+ inferenceTimeoutBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public Builder setInferenceTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+ if (inferenceTimeoutBuilder_ == null) {
+ inferenceTimeout_ = builderForValue.build();
+ } else {
+ inferenceTimeoutBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public Builder mergeInferenceTimeout(com.google.protobuf.Duration value) {
+ if (inferenceTimeoutBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && inferenceTimeout_ != null
+ && inferenceTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getInferenceTimeoutBuilder().mergeFrom(value);
+ } else {
+ inferenceTimeout_ = value;
+ }
+ } else {
+ inferenceTimeoutBuilder_.mergeFrom(value);
+ }
+ if (inferenceTimeout_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public Builder clearInferenceTimeout() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inferenceTimeout_ = null;
+ if (inferenceTimeoutBuilder_ != null) {
+ inferenceTimeoutBuilder_.dispose();
+ inferenceTimeoutBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public com.google.protobuf.Duration.Builder getInferenceTimeoutBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getInferenceTimeoutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() {
+ if (inferenceTimeoutBuilder_ != null) {
+ return inferenceTimeoutBuilder_.getMessageOrBuilder();
+ } else {
+ return inferenceTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : inferenceTimeout_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getInferenceTimeoutFieldBuilder() {
+ if (inferenceTimeoutBuilder_ == null) {
+ inferenceTimeoutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getInferenceTimeout(), getParentForChildren(), isClean());
+ inferenceTimeout_ = null;
+ }
+ return inferenceTimeoutBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ClientConnectionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ClientConnectionConfig)
+ private static final com.google.cloud.vertexai.api.ClientConnectionConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ClientConnectionConfig();
+ }
+
+ public static com.google.cloud.vertexai.api.ClientConnectionConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return Whether the inferenceTimeout field is set.
+ */
+ boolean hasInferenceTimeout();
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ *
+ * @return The inferenceTimeout.
+ */
+ com.google.protobuf.Duration getInferenceTimeout();
+ /**
+ *
+ *
+ * + * Customizable online prediction request timeout. + *+ * + *
.google.protobuf.Duration inference_timeout = 1;
+ */
+ com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder();
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CodeExecutionResult.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CodeExecutionResult.java
new file mode 100644
index 000000000000..a7113341abc5
--- /dev/null
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CodeExecutionResult.java
@@ -0,0 +1,991 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/vertexai/v1/tool.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.vertexai.api;
+
+/**
+ *
+ *
+ * + * Result of executing the [ExecutableCode]. + * + * Always follows a `part` containing the [ExecutableCode]. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CodeExecutionResult} + */ +public final class CodeExecutionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.CodeExecutionResult) + CodeExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CodeExecutionResult.newBuilder() to construct. + private CodeExecutionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CodeExecutionResult() { + outcome_ = 0; + output_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeExecutionResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_CodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_CodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.CodeExecutionResult.class, + com.google.cloud.vertexai.api.CodeExecutionResult.Builder.class); + } + + /** + * + * + *
+ * Enumeration of possible outcomes of the code execution. + *+ * + * Protobuf enum {@code google.cloud.vertexai.v1.CodeExecutionResult.Outcome} + */ + public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified status. This value should not be used. + *+ * + *
OUTCOME_UNSPECIFIED = 0;
+ */
+ OUTCOME_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Code execution completed successfully. + *+ * + *
OUTCOME_OK = 1;
+ */
+ OUTCOME_OK(1),
+ /**
+ *
+ *
+ * + * Code execution finished but with a failure. `stderr` should contain the + * reason. + *+ * + *
OUTCOME_FAILED = 2;
+ */
+ OUTCOME_FAILED(2),
+ /**
+ *
+ *
+ * + * Code execution ran for too long, and was cancelled. There may or may not + * be a partial output present. + *+ * + *
OUTCOME_DEADLINE_EXCEEDED = 3;
+ */
+ OUTCOME_DEADLINE_EXCEEDED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified status. This value should not be used. + *+ * + *
OUTCOME_UNSPECIFIED = 0;
+ */
+ public static final int OUTCOME_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Code execution completed successfully. + *+ * + *
OUTCOME_OK = 1;
+ */
+ public static final int OUTCOME_OK_VALUE = 1;
+ /**
+ *
+ *
+ * + * Code execution finished but with a failure. `stderr` should contain the + * reason. + *+ * + *
OUTCOME_FAILED = 2;
+ */
+ public static final int OUTCOME_FAILED_VALUE = 2;
+ /**
+ *
+ *
+ * + * Code execution ran for too long, and was cancelled. There may or may not + * be a partial output present. + *+ * + *
OUTCOME_DEADLINE_EXCEEDED = 3;
+ */
+ public static final int OUTCOME_DEADLINE_EXCEEDED_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Outcome valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Outcome forNumber(int value) {
+ switch (value) {
+ case 0:
+ return OUTCOME_UNSPECIFIED;
+ case 1:
+ return OUTCOME_OK;
+ case 2:
+ return OUTCOME_FAILED;
+ case 3:
+ return OUTCOME_DEADLINE_EXCEEDED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for outcome.
+ */
+ @java.lang.Override
+ public int getOutcomeValue() {
+ return outcome_;
+ }
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outcome.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.CodeExecutionResult.Outcome getOutcome() {
+ com.google.cloud.vertexai.api.CodeExecutionResult.Outcome result =
+ com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.forNumber(outcome_);
+ return result == null
+ ? com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int OUTPUT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object output_ = "";
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The output.
+ */
+ @java.lang.Override
+ public java.lang.String getOutput() {
+ java.lang.Object ref = output_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ output_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for output.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOutputBytes() {
+ java.lang.Object ref = output_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ output_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (outcome_
+ != com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.OUTCOME_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, outcome_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(output_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, output_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (outcome_
+ != com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.OUTCOME_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, outcome_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(output_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, output_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.CodeExecutionResult)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.CodeExecutionResult other =
+ (com.google.cloud.vertexai.api.CodeExecutionResult) obj;
+
+ if (outcome_ != other.outcome_) return false;
+ if (!getOutput().equals(other.getOutput())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OUTCOME_FIELD_NUMBER;
+ hash = (53 * hash) + outcome_;
+ hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getOutput().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.CodeExecutionResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Result of executing the [ExecutableCode]. + * + * Always follows a `part` containing the [ExecutableCode]. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.CodeExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for outcome.
+ */
+ @java.lang.Override
+ public int getOutcomeValue() {
+ return outcome_;
+ }
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for outcome to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutcomeValue(int value) {
+ outcome_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outcome.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.CodeExecutionResult.Outcome getOutcome() {
+ com.google.cloud.vertexai.api.CodeExecutionResult.Outcome result =
+ com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.forNumber(outcome_);
+ return result == null
+ ? com.google.cloud.vertexai.api.CodeExecutionResult.Outcome.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The outcome to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutcome(com.google.cloud.vertexai.api.CodeExecutionResult.Outcome value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ outcome_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutcome() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ outcome_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object output_ = "";
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The output.
+ */
+ public java.lang.String getOutput() {
+ java.lang.Object ref = output_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ output_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for output.
+ */
+ public com.google.protobuf.ByteString getOutputBytes() {
+ java.lang.Object ref = output_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ output_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The output to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutput(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ output_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutput() {
+ output_ = getDefaultInstance().getOutput();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for output to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ output_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.CodeExecutionResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.CodeExecutionResult)
+ private static final com.google.cloud.vertexai.api.CodeExecutionResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.CodeExecutionResult();
+ }
+
+ public static com.google.cloud.vertexai.api.CodeExecutionResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for outcome.
+ */
+ int getOutcomeValue();
+ /**
+ *
+ *
+ * + * Required. Outcome of the code execution. + *+ * + *
+ * .google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The outcome.
+ */
+ com.google.cloud.vertexai.api.CodeExecutionResult.Outcome getOutcome();
+
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The output.
+ */
+ java.lang.String getOutput();
+ /**
+ *
+ *
+ * + * Optional. Contains stdout when code execution is successful, stderr or + * other description otherwise. + *+ * + *
string output = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for output.
+ */
+ com.google.protobuf.ByteString getOutputBytes();
+}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequest.java
index 57374876a6e4..5d477c712b96 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequest.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequestOrBuilder.java
index 88496eed85a6..2b309b674437 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequestOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponse.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponse.java
index 3c101a5f52be..02c7b668ac4d 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponse.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponseOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponseOrBuilder.java
index 0616af996382..930bd8e7e30d 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponseOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ComputeTokensResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestination.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestination.java
index 7d92d70c33af..f93fed1bc918 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestination.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestination.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestinationOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestinationOrBuilder.java
index fd1304b8f2d2..b6e0a4547699 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestinationOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContainerRegistryDestinationOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Content.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Content.java
index cc2e9e62d1d5..4984a2caffb8 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Content.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Content.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentOrBuilder.java
index 221d75e29dc3..89c771186103 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java
index 36b84a0e1ebc..40954ca0cb14 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -84,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_vertexai_v1_Candidate_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_vertexai_v1_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_Candidate_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_TopCandidates_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_TopCandidates_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_vertexai_v1_Segment_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -112,6 +124,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_RetrievalMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_RetrievalMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_vertexai_v1_ModalityTokenCount_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_vertexai_v1_ModalityTokenCount_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -128,7 +148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ai/v1/tool.proto\032\036google/protobuf/durati"
+ "on.proto\032\026google/type/date.proto\"P\n\007Cont"
+ "ent\022\021\n\004role\030\001 \001(\tB\003\340A\001\0222\n\005parts\030\002 \003(\0132\036."
- + "google.cloud.vertexai.v1.PartB\003\340A\002\"\205\003\n\004P"
+ + "google.cloud.vertexai.v1.PartB\003\340A\002\"\244\004\n\004P"
+ "art\022\023\n\004text\030\001 \001(\tB\003\340A\001H\000\022:\n\013inline_data\030"
+ "\002 \001(\0132\036.google.cloud.vertexai.v1.BlobB\003\340"
+ "A\001H\000\022<\n\tfile_data\030\003 \001(\0132\".google.cloud.v"
@@ -136,130 +156,159 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "all\030\005 \001(\0132&.google.cloud.vertexai.v1.Fun"
+ "ctionCallB\003\340A\001H\000\022L\n\021function_response\030\006 "
+ "\001(\0132*.google.cloud.vertexai.v1.FunctionR"
- + "esponseB\003\340A\001H\000\022F\n\016video_metadata\030\004 \001(\0132\'"
- + ".google.cloud.vertexai.v1.VideoMetadataB"
- + "\003\340A\001H\001B\006\n\004dataB\n\n\010metadata\"1\n\004Blob\022\026\n\tmi"
- + "me_type\030\001 \001(\tB\003\340A\002\022\021\n\004data\030\002 \001(\014B\003\340A\002\"9\n"
- + "\010FileData\022\026\n\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n\010fil"
- + "e_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014sta"
- + "rt_offset\030\001 \001(\0132\031.google.protobuf.Durati"
- + "onB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google.pro"
- + "tobuf.DurationB\003\340A\001\"\323\t\n\020GenerationConfig"
- + "\022\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p"
- + "\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001"
- + "\001\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021"
- + "max_output_tokens\030\005 \001(\005B\003\340A\001H\004\210\001\001\022\033\n\016sto"
- + "p_sequences\030\006 \003(\tB\003\340A\001\022\"\n\020presence_penal"
- + "ty\030\010 \001(\002B\003\340A\001H\005\210\001\001\022#\n\021frequency_penalty\030"
- + "\t \001(\002B\003\340A\001H\006\210\001\001\022\026\n\004seed\030\014 \001(\005B\003\340A\001H\007\210\001\001\022"
- + "\037\n\022response_mime_type\030\r \001(\tB\003\340A\001\022C\n\017resp"
- + "onse_schema\030\020 \001(\0132 .google.cloud.vertexa"
- + "i.v1.SchemaB\003\340A\001H\010\210\001\001\022Z\n\016routing_config\030"
- + "\021 \001(\01328.google.cloud.vertexai.v1.Generat"
- + "ionConfig.RoutingConfigB\003\340A\001H\t\210\001\001\032\274\004\n\rRo"
- + "utingConfig\022]\n\tauto_mode\030\001 \001(\0132H.google."
- + "cloud.vertexai.v1.GenerationConfig.Routi"
- + "ngConfig.AutoRoutingModeH\000\022a\n\013manual_mod"
- + "e\030\002 \001(\0132J.google.cloud.vertexai.v1.Gener"
- + "ationConfig.RoutingConfig.ManualRoutingM"
- + "odeH\000\032\231\002\n\017AutoRoutingMode\022\206\001\n\030model_rout"
- + "ing_preference\030\001 \001(\0162_.google.cloud.vert"
- + "exai.v1.GenerationConfig.RoutingConfig.A"
- + "utoRoutingMode.ModelRoutingPreferenceH\000\210"
- + "\001\001\"`\n\026ModelRoutingPreference\022\013\n\007UNKNOWN\020"
- + "\000\022\026\n\022PRIORITIZE_QUALITY\020\001\022\014\n\010BALANCED\020\002\022"
- + "\023\n\017PRIORITIZE_COST\020\003B\033\n\031_model_routing_p"
- + "reference\032;\n\021ManualRoutingMode\022\027\n\nmodel_"
- + "name\030\001 \001(\tH\000\210\001\001B\r\n\013_model_nameB\020\n\016routin"
- + "g_configB\016\n\014_temperatureB\010\n\006_top_pB\010\n\006_t"
- + "op_kB\022\n\020_candidate_countB\024\n\022_max_output_"
- + "tokensB\023\n\021_presence_penaltyB\024\n\022_frequenc"
- + "y_penaltyB\007\n\005_seedB\022\n\020_response_schemaB\021"
- + "\n\017_routing_config\"\345\003\n\rSafetySetting\022=\n\010c"
- + "ategory\030\001 \001(\0162&.google.cloud.vertexai.v1"
- + ".HarmCategoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:."
- + "google.cloud.vertexai.v1.SafetySetting.H"
- + "armBlockThresholdB\003\340A\002\022L\n\006method\030\004 \001(\01627"
- + ".google.cloud.vertexai.v1.SafetySetting."
- + "HarmBlockMethodB\003\340A\001\"\235\001\n\022HarmBlockThresh"
- + "old\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\020"
- + "\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDI"
- + "UM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nB"
- + "LOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockMethod\022"
- + "!\n\035HARM_BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010SE"
- + "VERITY\020\001\022\017\n\013PROBABILITY\020\002\"\271\004\n\014SafetyRati"
- + "ng\022=\n\010category\030\001 \001(\0162&.google.cloud.vert"
- + "exai.v1.HarmCategoryB\003\340A\003\022P\n\013probability"
- + "\030\002 \001(\01626.google.cloud.vertexai.v1.Safety"
- + "Rating.HarmProbabilityB\003\340A\003\022\036\n\021probabili"
- + "ty_score\030\005 \001(\002B\003\340A\003\022J\n\010severity\030\006 \001(\01623."
- + "google.cloud.vertexai.v1.SafetyRating.Ha"
- + "rmSeverityB\003\340A\003\022\033\n\016severity_score\030\007 \001(\002B"
- + "\003\340A\003\022\024\n\007blocked\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbab"
- + "ility\022 \n\034HARM_PROBABILITY_UNSPECIFIED\020\000\022"
- + "\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004"
- + "HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_SEVERITY"
- + "_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY_NEGLIGIB"
- + "LE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024HARM_SEVE"
- + "RITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_HIGH\020\004\"N\n"
- + "\020CitationMetadata\022:\n\tcitations\030\001 \003(\0132\".g"
- + "oogle.cloud.vertexai.v1.CitationB\003\340A\003\"\252\001"
- + "\n\010Citation\022\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\t"
- + "end_index\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022"
- + "\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003"
- + "\0220\n\020publication_date\030\006 \001(\0132\021.google.type"
- + ".DateB\003\340A\003\"\250\005\n\tCandidate\022\022\n\005index\030\001 \001(\005B"
- + "\003\340A\003\0227\n\007content\030\002 \001(\0132!.google.cloud.ver"
- + "texai.v1.ContentB\003\340A\003\022\022\n\005score\030\010 \001(\001B\003\340A"
- + "\003\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022L\n\rfinish_r"
- + "eason\030\003 \001(\01620.google.cloud.vertexai.v1.C"
- + "andidate.FinishReasonB\003\340A\003\022C\n\016safety_rat"
- + "ings\030\004 \003(\0132&.google.cloud.vertexai.v1.Sa"
- + "fetyRatingB\003\340A\003\022 \n\016finish_message\030\005 \001(\tB"
- + "\003\340A\003H\000\210\001\001\022J\n\021citation_metadata\030\006 \001(\0132*.g"
- + "oogle.cloud.vertexai.v1.CitationMetadata"
- + "B\003\340A\003\022L\n\022grounding_metadata\030\007 \001(\0132+.goog"
- + "le.cloud.vertexai.v1.GroundingMetadataB\003"
- + "\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINISH_REASON_UN"
- + "SPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n"
- + "\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\t"
- + "BLOCKLIST\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004S"
- + "PII\020\010\022\033\n\027MALFORMED_FUNCTION_CALL\020\tB\021\n\017_f"
- + "inish_message\"g\n\007Segment\022\027\n\npart_index\030\001"
- + " \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\te"
- + "nd_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\276"
- + "\002\n\016GroundingChunk\022;\n\003web\030\001 \001(\0132,.google."
- + "cloud.vertexai.v1.GroundingChunk.WebH\000\022V"
- + "\n\021retrieved_context\030\002 \001(\01329.google.cloud"
- + ".vertexai.v1.GroundingChunk.RetrievedCon"
- + "textH\000\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title"
- + "\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_title\032J\n\020Retriev"
- + "edContext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001"
- + "(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_titleB\014\n\nchunk_type\""
- + "\223\001\n\020GroundingSupport\0227\n\007segment\030\001 \001(\0132!."
- + "google.cloud.vertexai.v1.SegmentH\000\210\001\001\022\037\n"
- + "\027grounding_chunk_indices\030\002 \003(\005\022\031\n\021confid"
- + "ence_scores\030\003 \003(\002B\n\n\010_segment\"\256\002\n\021Ground"
- + "ingMetadata\022\037\n\022web_search_queries\030\001 \003(\tB"
- + "\003\340A\001\022P\n\022search_entry_point\030\004 \001(\0132*.googl"
- + "e.cloud.vertexai.v1.SearchEntryPointB\003\340A"
- + "\001H\000\210\001\001\022B\n\020grounding_chunks\030\005 \003(\0132(.googl"
- + "e.cloud.vertexai.v1.GroundingChunk\022K\n\022gr"
- + "ounding_supports\030\006 \003(\0132*.google.cloud.ve"
- + "rtexai.v1.GroundingSupportB\003\340A\001B\025\n\023_sear"
- + "ch_entry_point\"H\n\020SearchEntryPoint\022\035\n\020re"
- + "ndered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 "
- + "\001(\014B\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGO"
- + "RY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_S"
- + "PEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTE"
- + "NT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HA"
- + "RM_CATEGORY_SEXUALLY_EXPLICIT\020\004B\311\001\n\035com."
- + "google.cloud.vertexai.apiB\014ContentProtoP"
- + "\001Z>cloud.google.com/go/aiplatform/apiv1/"
- + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud"
- + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform"
- + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro"
- + "to3"
+ + "esponseB\003\340A\001H\000\022H\n\017executable_code\030\010 \001(\0132"
+ + "(.google.cloud.vertexai.v1.ExecutableCod"
+ + "eB\003\340A\001H\000\022S\n\025code_execution_result\030\t \001(\0132"
+ + "-.google.cloud.vertexai.v1.CodeExecution"
+ + "ResultB\003\340A\001H\000\022F\n\016video_metadata\030\004 \001(\0132\'."
+ + "google.cloud.vertexai.v1.VideoMetadataB\003"
+ + "\340A\001H\001B\006\n\004dataB\n\n\010metadata\"1\n\004Blob\022\026\n\tmim"
+ + "e_type\030\001 \001(\tB\003\340A\002\022\021\n\004data\030\002 \001(\014B\003\340A\002\"9\n\010"
+ + "FileData\022\026\n\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n\010file"
+ + "_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014star"
+ + "t_offset\030\001 \001(\0132\031.google.protobuf.Duratio"
+ + "nB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google.prot"
+ + "obuf.DurationB\003\340A\001\"\267\n\n\020GenerationConfig\022"
+ + "\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030"
+ + "\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001"
+ + "\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021m"
+ + "ax_output_tokens\030\005 \001(\005B\003\340A\001H\004\210\001\001\022\033\n\016stop"
+ + "_sequences\030\006 \003(\tB\003\340A\001\022#\n\021response_logpro"
+ + "bs\030\022 \001(\010B\003\340A\001H\005\210\001\001\022\032\n\010logprobs\030\007 \001(\005B\003\340A"
+ + "\001H\006\210\001\001\022\"\n\020presence_penalty\030\010 \001(\002B\003\340A\001H\007\210"
+ + "\001\001\022#\n\021frequency_penalty\030\t \001(\002B\003\340A\001H\010\210\001\001\022"
+ + "\026\n\004seed\030\014 \001(\005B\003\340A\001H\t\210\001\001\022\037\n\022response_mime"
+ + "_type\030\r \001(\tB\003\340A\001\022C\n\017response_schema\030\020 \001("
+ + "\0132 .google.cloud.vertexai.v1.SchemaB\003\340A\001"
+ + "H\n\210\001\001\022Z\n\016routing_config\030\021 \001(\01328.google.c"
+ + "loud.vertexai.v1.GenerationConfig.Routin"
+ + "gConfigB\003\340A\001H\013\210\001\001\032\274\004\n\rRoutingConfig\022]\n\ta"
+ + "uto_mode\030\001 \001(\0132H.google.cloud.vertexai.v"
+ + "1.GenerationConfig.RoutingConfig.AutoRou"
+ + "tingModeH\000\022a\n\013manual_mode\030\002 \001(\0132J.google"
+ + ".cloud.vertexai.v1.GenerationConfig.Rout"
+ + "ingConfig.ManualRoutingModeH\000\032\231\002\n\017AutoRo"
+ + "utingMode\022\206\001\n\030model_routing_preference\030\001"
+ + " \001(\0162_.google.cloud.vertexai.v1.Generati"
+ + "onConfig.RoutingConfig.AutoRoutingMode.M"
+ + "odelRoutingPreferenceH\000\210\001\001\"`\n\026ModelRouti"
+ + "ngPreference\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_"
+ + "QUALITY\020\001\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE_CO"
+ + "ST\020\003B\033\n\031_model_routing_preference\032;\n\021Man"
+ + "ualRoutingMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B"
+ + "\r\n\013_model_nameB\020\n\016routing_configB\016\n\014_tem"
+ + "peratureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_candida"
+ + "te_countB\024\n\022_max_output_tokensB\024\n\022_respo"
+ + "nse_logprobsB\013\n\t_logprobsB\023\n\021_presence_p"
+ + "enaltyB\024\n\022_frequency_penaltyB\007\n\005_seedB\022\n"
+ + "\020_response_schemaB\021\n\017_routing_config\"\345\003\n"
+ + "\rSafetySetting\022=\n\010category\030\001 \001(\0162&.googl"
+ + "e.cloud.vertexai.v1.HarmCategoryB\003\340A\002\022R\n"
+ + "\tthreshold\030\002 \001(\0162:.google.cloud.vertexai"
+ + ".v1.SafetySetting.HarmBlockThresholdB\003\340A"
+ + "\002\022L\n\006method\030\004 \001(\01627.google.cloud.vertexa"
+ + "i.v1.SafetySetting.HarmBlockMethodB\003\340A\001\""
+ + "\235\001\n\022HarmBlockThreshold\022$\n HARM_BLOCK_THR"
+ + "ESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW_AND_AB"
+ + "OVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n\017BLO"
+ + "CK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\""
+ + "S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_METHOD_"
+ + "UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILI"
+ + "TY\020\002\"\271\004\n\014SafetyRating\022=\n\010category\030\001 \001(\0162"
+ + "&.google.cloud.vertexai.v1.HarmCategoryB"
+ + "\003\340A\003\022P\n\013probability\030\002 \001(\01626.google.cloud"
+ + ".vertexai.v1.SafetyRating.HarmProbabilit"
+ + "yB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022J"
+ + "\n\010severity\030\006 \001(\01623.google.cloud.vertexai"
+ + ".v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n\016se"
+ + "verity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 \001(\010"
+ + "B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PROBABI"
+ + "LITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LO"
+ + "W\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSeveri"
+ + "ty\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n\030HAR"
+ + "M_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVERITY"
+ + "_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022HARM"
+ + "_SEVERITY_HIGH\020\004\"N\n\020CitationMetadata\022:\n\t"
+ + "citations\030\001 \003(\0132\".google.cloud.vertexai."
+ + "v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start_i"
+ + "ndex\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003\340A\003\022"
+ + "\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n"
+ + "\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_date\030"
+ + "\006 \001(\0132\021.google.type.DateB\003\340A\003\"\360\005\n\tCandid"
+ + "ate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007content\030\002 \001(\013"
+ + "2!.google.cloud.vertexai.v1.ContentB\003\340A\003"
+ + "\022\022\n\005score\030\010 \001(\001B\003\340A\003\022\031\n\014avg_logprobs\030\t \001"
+ + "(\001B\003\340A\003\022F\n\017logprobs_result\030\n \001(\0132(.googl"
+ + "e.cloud.vertexai.v1.LogprobsResultB\003\340A\003\022"
+ + "L\n\rfinish_reason\030\003 \001(\01620.google.cloud.ve"
+ + "rtexai.v1.Candidate.FinishReasonB\003\340A\003\022C\n"
+ + "\016safety_ratings\030\004 \003(\0132&.google.cloud.ver"
+ + "texai.v1.SafetyRatingB\003\340A\003\022 \n\016finish_mes"
+ + "sage\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021citation_metadat"
+ + "a\030\006 \001(\0132*.google.cloud.vertexai.v1.Citat"
+ + "ionMetadataB\003\340A\003\022L\n\022grounding_metadata\030\007"
+ + " \001(\0132+.google.cloud.vertexai.v1.Groundin"
+ + "gMetadataB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031FINIS"
+ + "H_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_"
+ + "TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005"
+ + "OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_CON"
+ + "TENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCTION_C"
+ + "ALL\020\tB\021\n\017_finish_message\"\211\003\n\016LogprobsRes"
+ + "ult\022N\n\016top_candidates\030\001 \003(\01326.google.clo"
+ + "ud.vertexai.v1.LogprobsResult.TopCandida"
+ + "tes\022M\n\021chosen_candidates\030\002 \003(\01322.google."
+ + "cloud.vertexai.v1.LogprobsResult.Candida"
+ + "te\032\177\n\tCandidate\022\022\n\005token\030\001 \001(\tH\000\210\001\001\022\025\n\010t"
+ + "oken_id\030\003 \001(\005H\001\210\001\001\022\034\n\017log_probability\030\002 "
+ + "\001(\002H\002\210\001\001B\010\n\006_tokenB\013\n\t_token_idB\022\n\020_log_"
+ + "probability\032W\n\rTopCandidates\022F\n\ncandidat"
+ + "es\030\001 \003(\01322.google.cloud.vertexai.v1.Logp"
+ + "robsResult.Candidate\"g\n\007Segment\022\027\n\npart_"
+ + "index\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340"
+ + "A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\t"
+ + "B\003\340A\003\"\332\002\n\016GroundingChunk\022;\n\003web\030\001 \001(\0132,."
+ + "google.cloud.vertexai.v1.GroundingChunk."
+ + "WebH\000\022V\n\021retrieved_context\030\002 \001(\01329.googl"
+ + "e.cloud.vertexai.v1.GroundingChunk.Retri"
+ + "evedContextH\000\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022"
+ + "\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020"
+ + "RetrievedContext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005ti"
+ + "tle\030\002 \001(\tH\001\210\001\001\022\021\n\004text\030\003 \001(\tH\002\210\001\001B\006\n\004_ur"
+ + "iB\010\n\006_titleB\007\n\005_textB\014\n\nchunk_type\"\223\001\n\020G"
+ + "roundingSupport\0227\n\007segment\030\001 \001(\0132!.googl"
+ + "e.cloud.vertexai.v1.SegmentH\000\210\001\001\022\037\n\027grou"
+ + "nding_chunk_indices\030\002 \003(\005\022\031\n\021confidence_"
+ + "scores\030\003 \003(\002B\n\n\010_segment\"\233\003\n\021GroundingMe"
+ + "tadata\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A\001\022"
+ + "P\n\022search_entry_point\030\004 \001(\0132*.google.clo"
+ + "ud.vertexai.v1.SearchEntryPointB\003\340A\001H\000\210\001"
+ + "\001\022B\n\020grounding_chunks\030\005 \003(\0132(.google.clo"
+ + "ud.vertexai.v1.GroundingChunk\022K\n\022groundi"
+ + "ng_supports\030\006 \003(\0132*.google.cloud.vertexa"
+ + "i.v1.GroundingSupportB\003\340A\001\022T\n\022retrieval_"
+ + "metadata\030\007 \001(\0132+.google.cloud.vertexai.v"
+ + "1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_sea"
+ + "rch_entry_pointB\025\n\023_retrieval_metadata\"H"
+ + "\n\020SearchEntryPoint\022\035\n\020rendered_content\030\001"
+ + " \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001\"G\n\021Retr"
+ + "ievalMetadata\0222\n%google_search_dynamic_r"
+ + "etrieval_score\030\002 \001(\002B\003\340A\001\"_\n\022ModalityTok"
+ + "enCount\0224\n\010modality\030\001 \001(\0162\".google.cloud"
+ + ".vertexai.v1.Modality\022\023\n\013token_count\030\002 \001"
+ + "(\005*\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNS"
+ + "PECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020"
+ + "\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034"
+ + "\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CAT"
+ + "EGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGO"
+ + "RY_CIVIC_INTEGRITY\020\005*]\n\010Modality\022\030\n\024MODA"
+ + "LITY_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001\022\t\n\005IMAGE\020\002\022"
+ + "\t\n\005VIDEO\020\003\022\t\n\005AUDIO\020\004\022\014\n\010DOCUMENT\020\005B\311\001\n\035"
+ + "com.google.cloud.vertexai.apiB\014ContentPr"
+ + "otoP\001Z>cloud.google.com/go/aiplatform/ap"
+ + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C"
+ + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat"
+ + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -290,6 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"FileData",
"FunctionCall",
"FunctionResponse",
+ "ExecutableCode",
+ "CodeExecutionResult",
"VideoMetadata",
"Data",
"Metadata",
@@ -330,6 +381,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"CandidateCount",
"MaxOutputTokens",
"StopSequences",
+ "ResponseLogprobs",
+ "Logprobs",
"PresencePenalty",
"FrequencyPenalty",
"Seed",
@@ -409,14 +462,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Content",
"Score",
"AvgLogprobs",
+ "LogprobsResult",
"FinishReason",
"SafetyRatings",
"FinishMessage",
"CitationMetadata",
"GroundingMetadata",
});
- internal_static_google_cloud_vertexai_v1_Segment_descriptor =
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_descriptor =
getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_descriptor,
+ new java.lang.String[] {
+ "TopCandidates", "ChosenCandidates",
+ });
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_Candidate_descriptor =
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_Candidate_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_Candidate_descriptor,
+ new java.lang.String[] {
+ "Token", "TokenId", "LogProbability",
+ });
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_TopCandidates_descriptor =
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_descriptor.getNestedTypes().get(1);
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_TopCandidates_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_LogprobsResult_TopCandidates_descriptor,
+ new java.lang.String[] {
+ "Candidates",
+ });
+ internal_static_google_cloud_vertexai_v1_Segment_descriptor =
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_Segment_descriptor,
@@ -424,7 +502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PartIndex", "StartIndex", "EndIndex", "Text",
});
internal_static_google_cloud_vertexai_v1_GroundingChunk_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_vertexai_v1_GroundingChunk_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_GroundingChunk_descriptor,
@@ -445,10 +523,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_GroundingChunk_RetrievedContext_descriptor,
new java.lang.String[] {
- "Uri", "Title",
+ "Uri", "Title", "Text",
});
internal_static_google_cloud_vertexai_v1_GroundingSupport_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_vertexai_v1_GroundingSupport_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_GroundingSupport_descriptor,
@@ -456,21 +534,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Segment", "GroundingChunkIndices", "ConfidenceScores",
});
internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor,
new java.lang.String[] {
- "WebSearchQueries", "SearchEntryPoint", "GroundingChunks", "GroundingSupports",
+ "WebSearchQueries",
+ "SearchEntryPoint",
+ "GroundingChunks",
+ "GroundingSupports",
+ "RetrievalMetadata",
});
internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor,
new java.lang.String[] {
"RenderedContent", "SdkBlob",
});
+ internal_static_google_cloud_vertexai_v1_RetrievalMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_google_cloud_vertexai_v1_RetrievalMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_RetrievalMetadata_descriptor,
+ new java.lang.String[] {
+ "GoogleSearchDynamicRetrievalScore",
+ });
+ internal_static_google_cloud_vertexai_v1_ModalityTokenCount_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_cloud_vertexai_v1_ModalityTokenCount_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_vertexai_v1_ModalityTokenCount_descriptor,
+ new java.lang.String[] {
+ "Modality", "TokenCount",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequest.java
index 4100979dd311..a529849468f2 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequest.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -511,6 +511,65 @@ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index)
return tools_.get(index);
}
+ public static final int GENERATION_CONFIG_FIELD_NUMBER = 7;
+ private com.google.cloud.vertexai.api.GenerationConfig generationConfig_;
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the generationConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenerationConfig() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The generationConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.GenerationConfig getGenerationConfig() {
+ return generationConfig_ == null
+ ? com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()
+ : generationConfig_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.GenerationConfigOrBuilder getGenerationConfigOrBuilder() {
+ return generationConfig_ == null
+ ? com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()
+ : generationConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -543,6 +602,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < tools_.size(); i++) {
output.writeMessage(6, tools_.get(i));
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(7, getGenerationConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -570,6 +632,9 @@ public int getSerializedSize() {
for (int i = 0; i < tools_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tools_.get(i));
}
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGenerationConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -595,6 +660,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getSystemInstruction().equals(other.getSystemInstruction())) return false;
}
if (!getToolsList().equals(other.getToolsList())) return false;
+ if (hasGenerationConfig() != other.hasGenerationConfig()) return false;
+ if (hasGenerationConfig()) {
+ if (!getGenerationConfig().equals(other.getGenerationConfig())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -626,6 +695,10 @@ public int hashCode() {
hash = (37 * hash) + TOOLS_FIELD_NUMBER;
hash = (53 * hash) + getToolsList().hashCode();
}
+ if (hasGenerationConfig()) {
+ hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getGenerationConfig().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -770,6 +843,7 @@ private void maybeForceBuilderInitialization() {
getContentsFieldBuilder();
getSystemInstructionFieldBuilder();
getToolsFieldBuilder();
+ getGenerationConfigFieldBuilder();
}
}
@@ -805,6 +879,11 @@ public Builder clear() {
toolsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
+ generationConfig_ = null;
+ if (generationConfigBuilder_ != null) {
+ generationConfigBuilder_.dispose();
+ generationConfigBuilder_ = null;
+ }
return this;
}
@@ -887,6 +966,11 @@ private void buildPartial0(com.google.cloud.vertexai.api.CountTokensRequest resu
: systemInstructionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.generationConfig_ =
+ generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1030,6 +1114,9 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.CountTokensRequest other)
}
}
}
+ if (other.hasGenerationConfig()) {
+ mergeGenerationConfig(other.getGenerationConfig());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1113,6 +1200,13 @@ public Builder mergeFrom(
}
break;
} // case 50
+ case 58:
+ {
+ input.readMessage(
+ getGenerationConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2850,6 +2944,220 @@ public java.util.List+ * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the generationConfig field is set.
+ */
+ public boolean hasGenerationConfig() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The generationConfig.
+ */
+ public com.google.cloud.vertexai.api.GenerationConfig getGenerationConfig() {
+ if (generationConfigBuilder_ == null) {
+ return generationConfig_ == null
+ ? com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()
+ : generationConfig_;
+ } else {
+ return generationConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGenerationConfig(com.google.cloud.vertexai.api.GenerationConfig value) {
+ if (generationConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ generationConfig_ = value;
+ } else {
+ generationConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGenerationConfig(
+ com.google.cloud.vertexai.api.GenerationConfig.Builder builderForValue) {
+ if (generationConfigBuilder_ == null) {
+ generationConfig_ = builderForValue.build();
+ } else {
+ generationConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationConfig value) {
+ if (generationConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && generationConfig_ != null
+ && generationConfig_
+ != com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()) {
+ getGenerationConfigBuilder().mergeFrom(value);
+ } else {
+ generationConfig_ = value;
+ }
+ } else {
+ generationConfigBuilder_.mergeFrom(value);
+ }
+ if (generationConfig_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGenerationConfig() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ generationConfig_ = null;
+ if (generationConfigBuilder_ != null) {
+ generationConfigBuilder_.dispose();
+ generationConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.vertexai.api.GenerationConfig.Builder getGenerationConfigBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getGenerationConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.vertexai.api.GenerationConfigOrBuilder getGenerationConfigOrBuilder() {
+ if (generationConfigBuilder_ != null) {
+ return generationConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return generationConfig_ == null
+ ? com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()
+ : generationConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.GenerationConfig,
+ com.google.cloud.vertexai.api.GenerationConfig.Builder,
+ com.google.cloud.vertexai.api.GenerationConfigOrBuilder>
+ getGenerationConfigFieldBuilder() {
+ if (generationConfigBuilder_ == null) {
+ generationConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.GenerationConfig,
+ com.google.cloud.vertexai.api.GenerationConfig.Builder,
+ com.google.cloud.vertexai.api.GenerationConfigOrBuilder>(
+ getGenerationConfig(), getParentForChildren(), isClean());
+ generationConfig_ = null;
+ }
+ return generationConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequestOrBuilder.java
index 2bd233689ffc..24549020dff6 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequestOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -341,4 +341,48 @@ public interface CountTokensRequestOrBuilder
*
*/
com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the generationConfig field is set.
+ */
+ boolean hasGenerationConfig();
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The generationConfig.
+ */
+ com.google.cloud.vertexai.api.GenerationConfig getGenerationConfig();
+ /**
+ *
+ *
+ * + * Optional. Generation config that the model will use to generate the + * response. + *+ * + *
+ * optional .google.cloud.vertexai.v1.GenerationConfig generation_config = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.vertexai.api.GenerationConfigOrBuilder getGenerationConfigOrBuilder();
}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensResponse.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensResponse.java
index 4c859da92069..3ee4881a1a7c 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensResponse.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CountTokensResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,9 @@ private CountTokensResponse(com.google.protobuf.GeneratedMessageV3.Builder> bu
super(builder);
}
- private CountTokensResponse() {}
+ private CountTokensResponse() {
+ promptTokensDetails_ = java.util.Collections.emptyList();
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
@@ -98,6 +100,89 @@ public int getTotalBillableCharacters() {
return totalBillableCharacters_;
}
+ public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder>
+ getPromptTokensDetailsOrBuilderList() {
+ return promptTokensDetails_;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getPromptTokensDetailsCount() {
+ return promptTokensDetails_.size();
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ModalityTokenCount getPromptTokensDetails(int index) {
+ return promptTokensDetails_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(
+ int index) {
+ return promptTokensDetails_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -118,6 +203,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (totalBillableCharacters_ != 0) {
output.writeInt32(2, totalBillableCharacters_);
}
+ for (int i = 0; i < promptTokensDetails_.size(); i++) {
+ output.writeMessage(3, promptTokensDetails_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -133,6 +221,10 @@ public int getSerializedSize() {
if (totalBillableCharacters_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalBillableCharacters_);
}
+ for (int i = 0; i < promptTokensDetails_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, promptTokensDetails_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -151,6 +243,7 @@ public boolean equals(final java.lang.Object obj) {
if (getTotalTokens() != other.getTotalTokens()) return false;
if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false;
+ if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -166,6 +259,10 @@ public int hashCode() {
hash = (53 * hash) + getTotalTokens();
hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
hash = (53 * hash) + getTotalBillableCharacters();
+ if (getPromptTokensDetailsCount() > 0) {
+ hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getPromptTokensDetailsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -307,6 +404,13 @@ public Builder clear() {
bitField0_ = 0;
totalTokens_ = 0;
totalBillableCharacters_ = 0;
+ if (promptTokensDetailsBuilder_ == null) {
+ promptTokensDetails_ = java.util.Collections.emptyList();
+ } else {
+ promptTokensDetails_ = null;
+ promptTokensDetailsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -334,6 +438,7 @@ public com.google.cloud.vertexai.api.CountTokensResponse build() {
public com.google.cloud.vertexai.api.CountTokensResponse buildPartial() {
com.google.cloud.vertexai.api.CountTokensResponse result =
new com.google.cloud.vertexai.api.CountTokensResponse(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -341,6 +446,19 @@ public com.google.cloud.vertexai.api.CountTokensResponse buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(
+ com.google.cloud.vertexai.api.CountTokensResponse result) {
+ if (promptTokensDetailsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.promptTokensDetails_ = promptTokensDetails_;
+ } else {
+ result.promptTokensDetails_ = promptTokensDetailsBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.cloud.vertexai.api.CountTokensResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -403,6 +521,33 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.CountTokensResponse other
if (other.getTotalBillableCharacters() != 0) {
setTotalBillableCharacters(other.getTotalBillableCharacters());
}
+ if (promptTokensDetailsBuilder_ == null) {
+ if (!other.promptTokensDetails_.isEmpty()) {
+ if (promptTokensDetails_.isEmpty()) {
+ promptTokensDetails_ = other.promptTokensDetails_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.addAll(other.promptTokensDetails_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.promptTokensDetails_.isEmpty()) {
+ if (promptTokensDetailsBuilder_.isEmpty()) {
+ promptTokensDetailsBuilder_.dispose();
+ promptTokensDetailsBuilder_ = null;
+ promptTokensDetails_ = other.promptTokensDetails_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ promptTokensDetailsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getPromptTokensDetailsFieldBuilder()
+ : null;
+ } else {
+ promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -441,6 +586,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 26:
+ {
+ com.google.cloud.vertexai.api.ModalityTokenCount m =
+ input.readMessage(
+ com.google.cloud.vertexai.api.ModalityTokenCount.parser(),
+ extensionRegistry);
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.add(m);
+ } else {
+ promptTokensDetailsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -569,6 +728,404 @@ public Builder clearTotalBillableCharacters() {
return this;
}
+ private java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getPromptTokensDetailsCount() {
+ if (promptTokensDetailsBuilder_ == null) {
+ return promptTokensDetails_.size();
+ } else {
+ return promptTokensDetailsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ModalityTokenCount getPromptTokensDetails(int index) {
+ if (promptTokensDetailsBuilder_ == null) {
+ return promptTokensDetails_.get(index);
+ } else {
+ return promptTokensDetailsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPromptTokensDetails(
+ int index, com.google.cloud.vertexai.api.ModalityTokenCount value) {
+ if (promptTokensDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.set(index, value);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setPromptTokensDetails(
+ int index, com.google.cloud.vertexai.api.ModalityTokenCount.Builder builderForValue) {
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPromptTokensDetails(com.google.cloud.vertexai.api.ModalityTokenCount value) {
+ if (promptTokensDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.add(value);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPromptTokensDetails(
+ int index, com.google.cloud.vertexai.api.ModalityTokenCount value) {
+ if (promptTokensDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.add(index, value);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPromptTokensDetails(
+ com.google.cloud.vertexai.api.ModalityTokenCount.Builder builderForValue) {
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.add(builderForValue.build());
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addPromptTokensDetails(
+ int index, com.google.cloud.vertexai.api.ModalityTokenCount.Builder builderForValue) {
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllPromptTokensDetails(
+ java.lang.Iterable extends com.google.cloud.vertexai.api.ModalityTokenCount> values) {
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearPromptTokensDetails() {
+ if (promptTokensDetailsBuilder_ == null) {
+ promptTokensDetails_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removePromptTokensDetails(int index) {
+ if (promptTokensDetailsBuilder_ == null) {
+ ensurePromptTokensDetailsIsMutable();
+ promptTokensDetails_.remove(index);
+ onChanged();
+ } else {
+ promptTokensDetailsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ModalityTokenCount.Builder getPromptTokensDetailsBuilder(
+ int index) {
+ return getPromptTokensDetailsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder
+ getPromptTokensDetailsOrBuilder(int index) {
+ if (promptTokensDetailsBuilder_ == null) {
+ return promptTokensDetails_.get(index);
+ } else {
+ return promptTokensDetailsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder>
+ getPromptTokensDetailsOrBuilderList() {
+ if (promptTokensDetailsBuilder_ != null) {
+ return promptTokensDetailsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(promptTokensDetails_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ModalityTokenCount.Builder
+ addPromptTokensDetailsBuilder() {
+ return getPromptTokensDetailsFieldBuilder()
+ .addBuilder(com.google.cloud.vertexai.api.ModalityTokenCount.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.vertexai.api.ModalityTokenCount.Builder addPromptTokensDetailsBuilder(
+ int index) {
+ return getPromptTokensDetailsFieldBuilder()
+ .addBuilder(index, com.google.cloud.vertexai.api.ModalityTokenCount.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ModalityTokenCount getPromptTokensDetails(int index);
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getPromptTokensDetailsCount();
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder>
+ getPromptTokensDetailsOrBuilderList();
+ /**
+ *
+ *
+ * + * Output only. List of modalities that were processed in the request input. + *+ * + *
+ * repeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.vertexai.api.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(
+ int index);
}
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadata.java
index 9a1ebb5061df..e58ce856d0eb 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadata.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadata.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadataOrBuilder.java
index 6e1039f35d13..0e4a6c37dcd4 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadataOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointOperationMetadataOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequest.java
index 5ed61b7fa46c..a13422838522 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequest.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequestOrBuilder.java
index 1d1618c86340..e4bdd0d1e06e 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequestOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CreateEndpointRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestination.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestination.java
index 4dc632ee2d64..0a1ce14f8936 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestination.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestination.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestinationOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestinationOrBuilder.java
index 56a6021e58f8..940d503b032c 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestinationOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvDestinationOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSource.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSource.java
index e2f2fe5c51d3..1e1b48128250 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSource.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSourceOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSourceOrBuilder.java
index 8a18239d8680..4f2274af8b82 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSourceOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CsvSourceOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DedicatedResources.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DedicatedResources.java
index f86d6bd127c4..e21317d06cbd 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DedicatedResources.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DedicatedResources.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -181,6 +181,29 @@ public int getMaxReplicaCount() {
return maxReplicaCount_;
}
+ public static final int REQUIRED_REPLICA_COUNT_FIELD_NUMBER = 9;
+ private int requiredReplicaCount_ = 0;
+ /**
+ *
+ *
+ * + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + *+ * + *
int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requiredReplicaCount.
+ */
+ @java.lang.Override
+ public int getRequiredReplicaCount() {
+ return requiredReplicaCount_;
+ }
+
public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
@@ -423,6 +446,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (spot_ != false) {
output.writeBool(5, spot_);
}
+ if (requiredReplicaCount_ != 0) {
+ output.writeInt32(9, requiredReplicaCount_);
+ }
getUnknownFields().writeTo(output);
}
@@ -449,6 +475,9 @@ public int getSerializedSize() {
if (spot_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, spot_);
}
+ if (requiredReplicaCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requiredReplicaCount_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -471,6 +500,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (getMinReplicaCount() != other.getMinReplicaCount()) return false;
if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false;
+ if (getRequiredReplicaCount() != other.getRequiredReplicaCount()) return false;
if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList()))
return false;
if (getSpot() != other.getSpot()) return false;
@@ -493,6 +523,8 @@ public int hashCode() {
hash = (53 * hash) + getMinReplicaCount();
hash = (37 * hash) + MAX_REPLICA_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMaxReplicaCount();
+ hash = (37 * hash) + REQUIRED_REPLICA_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRequiredReplicaCount();
if (getAutoscalingMetricSpecsCount() > 0) {
hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode();
@@ -656,13 +688,14 @@ public Builder clear() {
}
minReplicaCount_ = 0;
maxReplicaCount_ = 0;
+ requiredReplicaCount_ = 0;
if (autoscalingMetricSpecsBuilder_ == null) {
autoscalingMetricSpecs_ = java.util.Collections.emptyList();
} else {
autoscalingMetricSpecs_ = null;
autoscalingMetricSpecsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
spot_ = false;
return this;
}
@@ -702,9 +735,9 @@ public com.google.cloud.vertexai.api.DedicatedResources buildPartial() {
private void buildPartialRepeatedFields(
com.google.cloud.vertexai.api.DedicatedResources result) {
if (autoscalingMetricSpecsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_;
} else {
@@ -726,7 +759,10 @@ private void buildPartial0(com.google.cloud.vertexai.api.DedicatedResources resu
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxReplicaCount_ = maxReplicaCount_;
}
- if (((from_bitField0_ & 0x00000010) != 0)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.requiredReplicaCount_ = requiredReplicaCount_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.spot_ = spot_;
}
result.bitField0_ |= to_bitField0_;
@@ -787,11 +823,14 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.DedicatedResources other)
if (other.getMaxReplicaCount() != 0) {
setMaxReplicaCount(other.getMaxReplicaCount());
}
+ if (other.getRequiredReplicaCount() != 0) {
+ setRequiredReplicaCount(other.getRequiredReplicaCount());
+ }
if (autoscalingMetricSpecsBuilder_ == null) {
if (!other.autoscalingMetricSpecs_.isEmpty()) {
if (autoscalingMetricSpecs_.isEmpty()) {
autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAutoscalingMetricSpecsIsMutable();
autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_);
@@ -804,7 +843,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.DedicatedResources other)
autoscalingMetricSpecsBuilder_.dispose();
autoscalingMetricSpecsBuilder_ = null;
autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
autoscalingMetricSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAutoscalingMetricSpecsFieldBuilder()
@@ -878,9 +917,15 @@ public Builder mergeFrom(
case 40:
{
spot_ = input.readBool();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
break;
} // case 40
+ case 72:
+ {
+ requiredReplicaCount_ = input.readInt32();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 72
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1282,15 +1327,83 @@ public Builder clearMaxReplicaCount() {
return this;
}
+ private int requiredReplicaCount_;
+ /**
+ *
+ *
+ * + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + *+ * + *
int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requiredReplicaCount.
+ */
+ @java.lang.Override
+ public int getRequiredReplicaCount() {
+ return requiredReplicaCount_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + *+ * + *
int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The requiredReplicaCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequiredReplicaCount(int value) {
+
+ requiredReplicaCount_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + *+ * + *
int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRequiredReplicaCount() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ requiredReplicaCount_ = 0;
+ onChanged();
+ return this;
+ }
+
private java.util.List+ * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + *+ * + *
int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The requiredReplicaCount.
+ */
+ int getRequiredReplicaCount();
+
/**
*
*
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequest.java
index d58e9d1852bc..d31c6cb838a1 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequest.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequestOrBuilder.java
index f4abb496c7e0..02b4049e28d1 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequestOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteEndpointRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadata.java
index 4f8be0c3c3d3..9fea9ec475e4 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadata.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadata.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadataOrBuilder.java
index 4e86b5224bda..dab4bde162a2 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadataOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeleteOperationMetadataOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadata.java
index ca9d1911f96b..d5f082ef0be9 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadata.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadata.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadataOrBuilder.java
index 4a1689eef879..09b045c106d1 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadataOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelOperationMetadataOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequest.java
index 2a6463886513..44f0c2ce1108 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequest.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequestOrBuilder.java
index 91ce55640dcf..8c67317c6770 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequestOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelRequestOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponse.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponse.java
index c7a7642fcfe2..7c8a575a39a6 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponse.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponse.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponseOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponseOrBuilder.java
index f22ba5e9bfa7..deb09e42ac18 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponseOrBuilder.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployModelResponseOrBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployedModel.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployedModel.java
index de845ba719d9..e77ec2377778 100644
--- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployedModel.java
+++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployedModel.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2024 Google LLC
+ * Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,6 +57,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_vertexai_v1_DeployedModel_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 28:
+ return internalGetSystemLabels();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -67,2252 +79,4620 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.vertexai.api.DeployedModel.Builder.class);
}
- private int bitField0_;
- private int predictionResourcesCase_ = 0;
-
- @SuppressWarnings("serial")
- private java.lang.Object predictionResources_;
-
- public enum PredictionResourcesCase
- implements
- com.google.protobuf.Internal.EnumLite,
- com.google.protobuf.AbstractMessage.InternalOneOfEnum {
- DEDICATED_RESOURCES(7),
- AUTOMATIC_RESOURCES(8),
- SHARED_RESOURCES(17),
- PREDICTIONRESOURCES_NOT_SET(0);
- private final int value;
+ public interface StatusOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.DeployedModel.Status)
+ com.google.protobuf.MessageOrBuilder {
- private PredictionResourcesCase(int value) {
- this.value = value;
- }
/**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The message.
*/
- @java.lang.Deprecated
- public static PredictionResourcesCase valueOf(int value) {
- return forNumber(value);
- }
-
- public static PredictionResourcesCase forNumber(int value) {
- switch (value) {
- case 7:
- return DEDICATED_RESOURCES;
- case 8:
- return AUTOMATIC_RESOURCES;
- case 17:
- return SHARED_RESOURCES;
- case 0:
- return PREDICTIONRESOURCES_NOT_SET;
- default:
- return null;
- }
- }
-
- public int getNumber() {
- return this.value;
- }
- };
+ java.lang.String getMessage();
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString getMessageBytes();
- public PredictionResourcesCase getPredictionResourcesCase() {
- return PredictionResourcesCase.forNumber(predictionResourcesCase_);
- }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the lastUpdateTime field is set.
+ */
+ boolean hasLastUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The lastUpdateTime.
+ */
+ com.google.protobuf.Timestamp getLastUpdateTime();
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
- public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 7;
- /**
- *
- *
- * - * A description of resources that are dedicated to the DeployedModel, and - * that need a higher degree of manual configuration. - *- * - *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
- *
- * @return Whether the dedicatedResources field is set.
- */
- @java.lang.Override
- public boolean hasDedicatedResources() {
- return predictionResourcesCase_ == 7;
- }
- /**
- *
- *
- * - * A description of resources that are dedicated to the DeployedModel, and - * that need a higher degree of manual configuration. - *- * - *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
- *
- * @return The dedicatedResources.
- */
- @java.lang.Override
- public com.google.cloud.vertexai.api.DedicatedResources getDedicatedResources() {
- if (predictionResourcesCase_ == 7) {
- return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
- }
- return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ /**
+ *
+ *
+ * + * Output only. The number of available replicas of the deployed model. + *+ * + *
int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The availableReplicaCount.
+ */
+ int getAvailableReplicaCount();
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Runtime status of the deployed model.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * Protobuf type {@code google.cloud.vertexai.v1.DeployedModel.Status}
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder
- getDedicatedResourcesOrBuilder() {
- if (predictionResourcesCase_ == 7) {
- return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
+ public static final class Status extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.DeployedModel.Status)
+ StatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Status.newBuilder() to construct.
+ private Status(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
- }
- public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 8;
- /**
- *
- *
- * - * A description of resources that to large degree are decided by Vertex - * AI, and require only a modest additional configuration. - *- * - *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
- *
- * @return Whether the automaticResources field is set.
- */
- @java.lang.Override
- public boolean hasAutomaticResources() {
- return predictionResourcesCase_ == 8;
- }
- /**
- *
- *
- * - * A description of resources that to large degree are decided by Vertex - * AI, and require only a modest additional configuration. - *- * - *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
- *
- * @return The automaticResources.
- */
- @java.lang.Override
- public com.google.cloud.vertexai.api.AutomaticResources getAutomaticResources() {
- if (predictionResourcesCase_ == 8) {
- return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+ private Status() {
+ message_ = "";
}
- return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
- }
- /**
- *
- *
- * - * A description of resources that to large degree are decided by Vertex - * AI, and require only a modest additional configuration. - *- * - *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
- */
- @java.lang.Override
- public com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder
- getAutomaticResourcesOrBuilder() {
- if (predictionResourcesCase_ == 8) {
- return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Status();
}
- return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
- }
- public static final int SHARED_RESOURCES_FIELD_NUMBER = 17;
- /**
- *
- *
- *
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
- *
- *
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return Whether the sharedResources field is set.
- */
- public boolean hasSharedResources() {
- return predictionResourcesCase_ == 17;
- }
- /**
- *
- *
- *
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
- *
- *
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return The sharedResources.
- */
- public java.lang.String getSharedResources() {
- java.lang.Object ref = "";
- if (predictionResourcesCase_ == 17) {
- ref = predictionResources_;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.vertexai.api.EndpointProto
+ .internal_static_google_cloud_vertexai_v1_DeployedModel_Status_descriptor;
}
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (predictionResourcesCase_ == 17) {
- predictionResources_ = s;
- }
- return s;
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.vertexai.api.EndpointProto
+ .internal_static_google_cloud_vertexai_v1_DeployedModel_Status_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.vertexai.api.DeployedModel.Status.class,
+ com.google.cloud.vertexai.api.DeployedModel.Status.Builder.class);
}
- }
- /**
- *
- *
- *
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
- *
- *
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return The bytes for sharedResources.
- */
- public com.google.protobuf.ByteString getSharedResourcesBytes() {
- java.lang.Object ref = "";
- if (predictionResourcesCase_ == 17) {
- ref = predictionResources_;
+
+ private int bitField0_;
+ public static final int MESSAGE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object message_ = "";
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ }
}
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- if (predictionResourcesCase_ == 17) {
- predictionResources_ = b;
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
}
- }
- public static final int ID_FIELD_NUMBER = 1;
+ public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp lastUpdateTime_;
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the lastUpdateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasLastUpdateTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The lastUpdateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getLastUpdateTime() {
+ return lastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastUpdateTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
+ return lastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastUpdateTime_;
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object id_ = "";
- /**
- *
- *
- * - * Immutable. The ID of the DeployedModel. If not provided upon deployment, - * Vertex AI will generate a value for this ID. - * - * This value should be 1-10 characters, and valid characters are `/[0-9]/`. - *- * - *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @return The id.
- */
- @java.lang.Override
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- id_ = s;
- return s;
+ public static final int AVAILABLE_REPLICA_COUNT_FIELD_NUMBER = 3;
+ private int availableReplicaCount_ = 0;
+ /**
+ *
+ *
+ * + * Output only. The number of available replicas of the deployed model. + *+ * + *
int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The availableReplicaCount.
+ */
+ @java.lang.Override
+ public int getAvailableReplicaCount() {
+ return availableReplicaCount_;
}
- }
- /**
- *
- *
- * - * Immutable. The ID of the DeployedModel. If not provided upon deployment, - * Vertex AI will generate a value for this ID. - * - * This value should be 1-10 characters, and valid characters are `/[0-9]/`. - *- * - *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @return The bytes for id.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
}
- }
- public static final int MODEL_FIELD_NUMBER = 2;
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getLastUpdateTime());
+ }
+ if (availableReplicaCount_ != 0) {
+ output.writeInt32(3, availableReplicaCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object model_ = "";
- /**
- *
- *
- *
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
- *
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
- *
- *
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The model.
- */
- @java.lang.Override
- public java.lang.String getModel() {
- java.lang.Object ref = model_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- model_ = s;
- return s;
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime());
+ }
+ if (availableReplicaCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, availableReplicaCount_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- }
- /**
- *
- *
- *
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
- *
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
- *
- *
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for model.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getModelBytes() {
- java.lang.Object ref = model_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- model_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.vertexai.api.DeployedModel.Status)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.vertexai.api.DeployedModel.Status other =
+ (com.google.cloud.vertexai.api.DeployedModel.Status) obj;
+
+ if (!getMessage().equals(other.getMessage())) return false;
+ if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false;
+ if (hasLastUpdateTime()) {
+ if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false;
+ }
+ if (getAvailableReplicaCount() != other.getAvailableReplicaCount()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- }
- public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18;
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ if (hasLastUpdateTime()) {
+ hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getLastUpdateTime().hashCode();
+ }
+ hash = (37 * hash) + AVAILABLE_REPLICA_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailableReplicaCount();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object modelVersionId_ = "";
- /**
- *
- *
- * - * Output only. The version ID of the model that is deployed. - *- * - *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The modelVersionId.
- */
- @java.lang.Override
- public java.lang.String getModelVersionId() {
- java.lang.Object ref = modelVersionId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- modelVersionId_ = s;
- return s;
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- }
- /**
- *
- *
- * - * Output only. The version ID of the model that is deployed. - *- * - *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The bytes for modelVersionId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getModelVersionIdBytes() {
- java.lang.Object ref = modelVersionId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- modelVersionId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- }
- public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
- /**
- *
- *
- * - * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. - *- * - *
string display_name = 3;
- *
- * @return The displayName.
- */
- @java.lang.Override
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
}
- }
- /**
- *
- *
- * - * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. - *- * - *
string display_name = 3;
- *
- * @return The bytes for displayName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
}
- }
- public static final int CREATE_TIME_FIELD_NUMBER = 6;
- private com.google.protobuf.Timestamp createTime_;
- /**
- *
- *
- * - * Output only. Timestamp when the DeployedModel was created. - *- * - *
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the createTime field is set.
- */
- @java.lang.Override
- public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- *
- * - * Output only. Timestamp when the DeployedModel was created. - *- * - *
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The createTime.
- */
- @java.lang.Override
- public com.google.protobuf.Timestamp getCreateTime() {
- return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
- }
- /**
- *
- *
- * - * Output only. Timestamp when the DeployedModel was created. - *- * - *
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- */
- @java.lang.Override
- public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
- return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
- }
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- public static final int EXPLANATION_SPEC_FIELD_NUMBER = 9;
- private com.google.cloud.vertexai.api.ExplanationSpec explanationSpec_;
- /**
- *
- *
- * - * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. - *- * - *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
- *
- * @return Whether the explanationSpec field is set.
- */
- @java.lang.Override
- public boolean hasExplanationSpec() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- *
- * - * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. - *- * - *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
- *
- * @return The explanationSpec.
- */
- @java.lang.Override
- public com.google.cloud.vertexai.api.ExplanationSpec getExplanationSpec() {
- return explanationSpec_ == null
- ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
- : explanationSpec_;
- }
- /**
- *
- *
- * - * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. - *- * - *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
- */
- @java.lang.Override
- public com.google.cloud.vertexai.api.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() {
- return explanationSpec_ == null
- ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
- : explanationSpec_;
- }
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
- public static final int DISABLE_EXPLANATIONS_FIELD_NUMBER = 19;
- private boolean disableExplanations_ = false;
- /**
- *
- *
- * - * If true, deploy the model without explainable feature, regardless the - * existence of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * or - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]. - *- * - *
bool disable_explanations = 19;
- *
- * @return The disableExplanations.
- */
- @java.lang.Override
- public boolean getDisableExplanations() {
- return disableExplanations_;
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.vertexai.api.DeployedModel.Status prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Runtime status of the deployed model. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.DeployedModel.Status} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ message_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The latest deployed model's status message (if any). + *+ * + *
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp lastUpdateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ lastUpdateTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the lastUpdateTime field is set.
+ */
+ public boolean hasLastUpdateTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The lastUpdateTime.
+ */
+ public com.google.protobuf.Timestamp getLastUpdateTime() {
+ if (lastUpdateTimeBuilder_ == null) {
+ return lastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastUpdateTime_;
+ } else {
+ return lastUpdateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) {
+ if (lastUpdateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ lastUpdateTime_ = value;
+ } else {
+ lastUpdateTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (lastUpdateTimeBuilder_ == null) {
+ lastUpdateTime_ = builderForValue.build();
+ } else {
+ lastUpdateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) {
+ if (lastUpdateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && lastUpdateTime_ != null
+ && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getLastUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ lastUpdateTime_ = value;
+ }
+ } else {
+ lastUpdateTimeBuilder_.mergeFrom(value);
+ }
+ if (lastUpdateTime_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLastUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ lastUpdateTime_ = null;
+ if (lastUpdateTimeBuilder_ != null) {
+ lastUpdateTimeBuilder_.dispose();
+ lastUpdateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getLastUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
+ if (lastUpdateTimeBuilder_ != null) {
+ return lastUpdateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return lastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : lastUpdateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time at which the status was last updated. + *+ * + *
+ * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getLastUpdateTimeFieldBuilder() {
+ if (lastUpdateTimeBuilder_ == null) {
+ lastUpdateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getLastUpdateTime(), getParentForChildren(), isClean());
+ lastUpdateTime_ = null;
+ }
+ return lastUpdateTimeBuilder_;
+ }
+
+ private int availableReplicaCount_;
+ /**
+ *
+ *
+ * + * Output only. The number of available replicas of the deployed model. + *+ * + *
int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The availableReplicaCount.
+ */
+ @java.lang.Override
+ public int getAvailableReplicaCount() {
+ return availableReplicaCount_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The number of available replicas of the deployed model. + *+ * + *
int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The availableReplicaCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableReplicaCount(int value) {
+
+ availableReplicaCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The number of available replicas of the deployed model. + *+ * + *
int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAvailableReplicaCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ availableReplicaCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.DeployedModel.Status)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.DeployedModel.Status)
+ private static final com.google.cloud.vertexai.api.DeployedModel.Status DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.DeployedModel.Status();
+ }
+
+ public static com.google.cloud.vertexai.api.DeployedModel.Status getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
- * The service account that the DeployedModel's container runs as. Specify the
- * email address of the service account. If this service account is not
- * specified, the container runs as a service account that doesn't have access
- * to the resource project.
- *
- * Users deploying the Model must have the `iam.serviceAccounts.actAs`
- * permission on this service account.
+ * A description of resources that are dedicated to the DeployedModel, and
+ * that need a higher degree of manual configuration.
*
*
- * string service_account = 11;
+ * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
*
- * @return The serviceAccount.
+ * @return Whether the dedicatedResources field is set.
*/
@java.lang.Override
- public java.lang.String getServiceAccount() {
- java.lang.Object ref = serviceAccount_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- serviceAccount_ = s;
- return s;
- }
+ public boolean hasDedicatedResources() {
+ return predictionResourcesCase_ == 7;
}
/**
*
*
*
- * The service account that the DeployedModel's container runs as. Specify the
- * email address of the service account. If this service account is not
- * specified, the container runs as a service account that doesn't have access
- * to the resource project.
- *
- * Users deploying the Model must have the `iam.serviceAccounts.actAs`
- * permission on this service account.
+ * A description of resources that are dedicated to the DeployedModel, and
+ * that need a higher degree of manual configuration.
*
*
- * string service_account = 11;
+ * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
*
- * @return The bytes for serviceAccount.
+ * @return The dedicatedResources.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getServiceAccountBytes() {
- java.lang.Object ref = serviceAccount_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- serviceAccount_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public com.google.cloud.vertexai.api.DedicatedResources getDedicatedResources() {
+ if (predictionResourcesCase_ == 7) {
+ return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
}
+ return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
}
-
- public static final int DISABLE_CONTAINER_LOGGING_FIELD_NUMBER = 15;
- private boolean disableContainerLogging_ = false;
/**
*
*
*
- * For custom-trained Models and AutoML Tabular Models, the container of the
- * DeployedModel instances will send `stderr` and `stdout` streams to
- * Cloud Logging by default. Please note that the logs incur cost,
- * which are subject to [Cloud Logging
- * pricing](https://cloud.google.com/logging/pricing).
- *
- * User can disable container logging by setting this flag to true.
+ * A description of resources that are dedicated to the DeployedModel, and
+ * that need a higher degree of manual configuration.
*
*
- * bool disable_container_logging = 15;
- *
- * @return The disableContainerLogging.
+ * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
*/
@java.lang.Override
- public boolean getDisableContainerLogging() {
- return disableContainerLogging_;
+ public com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder
+ getDedicatedResourcesOrBuilder() {
+ if (predictionResourcesCase_ == 7) {
+ return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
}
- public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 13;
- private boolean enableAccessLogging_ = false;
+ public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 8;
/**
*
*
*
- * If true, online prediction access logs are sent to Cloud
- * Logging.
- * These logs are like standard server access logs, containing
- * information like timestamp and latency for each prediction request.
- *
- * Note that logs may incur a cost, especially if your project
- * receives prediction requests at a high queries per second rate (QPS).
- * Estimate your costs before enabling this option.
+ * A description of resources that to large degree are decided by Vertex
+ * AI, and require only a modest additional configuration.
*
*
- * bool enable_access_logging = 13;
+ * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
*
- * @return The enableAccessLogging.
+ * @return Whether the automaticResources field is set.
*/
@java.lang.Override
- public boolean getEnableAccessLogging() {
- return enableAccessLogging_;
+ public boolean hasAutomaticResources() {
+ return predictionResourcesCase_ == 8;
}
-
- public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 14;
- private com.google.cloud.vertexai.api.PrivateEndpoints privateEndpoints_;
/**
*
*
*
- * Output only. Provide paths for users to send predict/explain/health
- * requests directly to the deployed model services running on Cloud via
- * private services access. This field is populated if
- * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured.
+ * A description of resources that to large degree are decided by Vertex
+ * AI, and require only a modest additional configuration.
*
*
- *
- * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
*
- * @return Whether the privateEndpoints field is set.
+ * @return The automaticResources.
*/
@java.lang.Override
- public boolean hasPrivateEndpoints() {
- return ((bitField0_ & 0x00000004) != 0);
+ public com.google.cloud.vertexai.api.AutomaticResources getAutomaticResources() {
+ if (predictionResourcesCase_ == 8) {
+ return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
}
/**
*
*
*
- * Output only. Provide paths for users to send predict/explain/health
- * requests directly to the deployed model services running on Cloud via
- * private services access. This field is populated if
- * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured.
+ * A description of resources that to large degree are decided by Vertex
+ * AI, and require only a modest additional configuration.
*
*
- *
- * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The privateEndpoints.
+ * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
*/
@java.lang.Override
- public com.google.cloud.vertexai.api.PrivateEndpoints getPrivateEndpoints() {
- return privateEndpoints_ == null
- ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance()
- : privateEndpoints_;
+ public com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder
+ getAutomaticResourcesOrBuilder() {
+ if (predictionResourcesCase_ == 8) {
+ return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
}
+
+ public static final int SHARED_RESOURCES_FIELD_NUMBER = 17;
/**
*
*
*
- * Output only. Provide paths for users to send predict/explain/health
- * requests directly to the deployed model services running on Cloud via
- * private services access. This field is populated if
- * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured.
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
*
*
- *
- * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sharedResources field is set.
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() {
- return privateEndpoints_ == null
- ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance()
- : privateEndpoints_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
+ public boolean hasSharedResources() {
+ return predictionResourcesCase_ == 17;
}
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(6, getCreateTime());
- }
- if (predictionResourcesCase_ == 7) {
- output.writeMessage(
- 7, (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_);
- }
- if (predictionResourcesCase_ == 8) {
- output.writeMessage(
- 8, (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(9, getExplanationSpec());
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccount_);
- }
- if (enableAccessLogging_ != false) {
- output.writeBool(13, enableAccessLogging_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeMessage(14, getPrivateEndpoints());
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sharedResources.
+ */
+ public java.lang.String getSharedResources() {
+ java.lang.Object ref = "";
+ if (predictionResourcesCase_ == 17) {
+ ref = predictionResources_;
}
- if (disableContainerLogging_ != false) {
- output.writeBool(15, disableContainerLogging_);
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (predictionResourcesCase_ == 17) {
+ predictionResources_ = s;
+ }
+ return s;
}
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sharedResources.
+ */
+ public com.google.protobuf.ByteString getSharedResourcesBytes() {
+ java.lang.Object ref = "";
if (predictionResourcesCase_ == 17) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 17, predictionResources_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_);
+ ref = predictionResources_;
}
- if (disableExplanations_ != false) {
- output.writeBool(19, disableExplanations_);
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (predictionResourcesCase_ == 17) {
+ predictionResources_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- getUnknownFields().writeTo(output);
}
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ public static final int ID_FIELD_NUMBER = 1;
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
- }
- if (predictionResourcesCase_ == 7) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 7, (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_);
- }
- if (predictionResourcesCase_ == 8) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 8, (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExplanationSpec());
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccount_);
- }
- if (enableAccessLogging_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableAccessLogging_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints());
- }
- if (disableContainerLogging_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, disableContainerLogging_);
- }
- if (predictionResourcesCase_ == 17) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, predictionResources_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelVersionId_);
- }
- if (disableExplanations_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, disableExplanations_);
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
}
-
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for id.
+ */
@java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.cloud.vertexai.api.DeployedModel)) {
- return super.equals(obj);
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- com.google.cloud.vertexai.api.DeployedModel other =
- (com.google.cloud.vertexai.api.DeployedModel) obj;
+ }
- if (!getId().equals(other.getId())) return false;
- if (!getModel().equals(other.getModel())) return false;
- if (!getModelVersionId().equals(other.getModelVersionId())) return false;
- if (!getDisplayName().equals(other.getDisplayName())) return false;
- if (hasCreateTime() != other.hasCreateTime()) return false;
- if (hasCreateTime()) {
- if (!getCreateTime().equals(other.getCreateTime())) return false;
- }
- if (hasExplanationSpec() != other.hasExplanationSpec()) return false;
- if (hasExplanationSpec()) {
- if (!getExplanationSpec().equals(other.getExplanationSpec())) return false;
- }
- if (getDisableExplanations() != other.getDisableExplanations()) return false;
- if (!getServiceAccount().equals(other.getServiceAccount())) return false;
- if (getDisableContainerLogging() != other.getDisableContainerLogging()) return false;
- if (getEnableAccessLogging() != other.getEnableAccessLogging()) return false;
- if (hasPrivateEndpoints() != other.hasPrivateEndpoints()) return false;
- if (hasPrivateEndpoints()) {
- if (!getPrivateEndpoints().equals(other.getPrivateEndpoints())) return false;
+ public static final int MODEL_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
+ *
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
}
- if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false;
- switch (predictionResourcesCase_) {
- case 7:
- if (!getDedicatedResources().equals(other.getDedicatedResources())) return false;
- break;
- case 8:
- if (!getAutomaticResources().equals(other.getAutomaticResources())) return false;
- break;
- case 17:
- if (!getSharedResources().equals(other.getSharedResources())) return false;
- break;
- case 0:
- default:
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
+ *
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
}
+ public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object modelVersionId_ = "";
+ /**
+ *
+ *
+ * + * Output only. The version ID of the model that is deployed. + *+ * + *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersionId.
+ */
@java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + getId().hashCode();
- hash = (37 * hash) + MODEL_FIELD_NUMBER;
- hash = (53 * hash) + getModel().hashCode();
- hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER;
- hash = (53 * hash) + getModelVersionId().hashCode();
- hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
- if (hasCreateTime()) {
- hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getCreateTime().hashCode();
+ public java.lang.String getModelVersionId() {
+ java.lang.Object ref = modelVersionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ modelVersionId_ = s;
+ return s;
}
- if (hasExplanationSpec()) {
- hash = (37 * hash) + EXPLANATION_SPEC_FIELD_NUMBER;
- hash = (53 * hash) + getExplanationSpec().hashCode();
- }
- hash = (37 * hash) + DISABLE_EXPLANATIONS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableExplanations());
- hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
- hash = (53 * hash) + getServiceAccount().hashCode();
- hash = (37 * hash) + DISABLE_CONTAINER_LOGGING_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableContainerLogging());
- hash = (37 * hash) + ENABLE_ACCESS_LOGGING_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAccessLogging());
- if (hasPrivateEndpoints()) {
- hash = (37 * hash) + PRIVATE_ENDPOINTS_FIELD_NUMBER;
- hash = (53 * hash) + getPrivateEndpoints().hashCode();
- }
- switch (predictionResourcesCase_) {
- case 7:
- hash = (37 * hash) + DEDICATED_RESOURCES_FIELD_NUMBER;
- hash = (53 * hash) + getDedicatedResources().hashCode();
- break;
- case 8:
- hash = (37 * hash) + AUTOMATIC_RESOURCES_FIELD_NUMBER;
- hash = (53 * hash) + getAutomaticResources().hashCode();
- break;
- case 17:
- hash = (37 * hash) + SHARED_RESOURCES_FIELD_NUMBER;
- hash = (53 * hash) + getSharedResources().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
}
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ /**
+ *
+ *
+ * + * Output only. The version ID of the model that is deployed. + *+ * + *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModelVersionIdBytes() {
+ java.lang.Object ref = modelVersionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- public static com.google.cloud.vertexai.api.DeployedModel parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + *+ * + *
string display_name = 3;
+ *
+ * @return The displayName.
+ */
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
}
-
- public static Builder newBuilder(com.google.cloud.vertexai.api.DeployedModel prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ /**
+ *
+ *
+ * + * The display name of the DeployedModel. If not provided upon creation, + * the Model's display_name is used. + *+ * + *
string display_name = 3;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
+ public static final int CREATE_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ * + * Output only. Timestamp when the DeployedModel was created. + *+ * + *
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
@java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000001) != 0);
}
-
+ /**
+ *
+ *
+ * + * Output only. Timestamp when the DeployedModel was created. + *+ * + *
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
- * A deployment of a Model. Endpoints contain one or more DeployedModels.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * Protobuf type {@code google.cloud.vertexai.v1.DeployedModel}
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * Explanation configuration for this DeployedModel. + * + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + *+ * + *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
+ *
+ * @return Whether the explanationSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasExplanationSpec() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Explanation configuration for this DeployedModel. + * + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + *+ * + *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
+ *
+ * @return The explanationSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ExplanationSpec getExplanationSpec() {
+ return explanationSpec_ == null
+ ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
+ : explanationSpec_;
+ }
+ /**
+ *
+ *
+ * + * Explanation configuration for this DeployedModel. + * + * When deploying a Model using + * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + * this value overrides the value of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + * All fields of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * are optional in the request. If a field of + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * is not populated, the value of the same field of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is inherited. If the corresponding + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * is not populated, all fields of the + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + * will be used for the explanation configuration. + *+ * + *
.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() {
+ return explanationSpec_ == null
+ ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
+ : explanationSpec_;
+ }
+
+ public static final int DISABLE_EXPLANATIONS_FIELD_NUMBER = 19;
+ private boolean disableExplanations_ = false;
+ /**
+ *
+ *
+ * + * If true, deploy the model without explainable feature, regardless the + * existence of + * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + * or + * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]. + *+ * + *
bool disable_explanations = 19;
+ *
+ * @return The disableExplanations.
+ */
+ @java.lang.Override
+ public boolean getDisableExplanations() {
+ return disableExplanations_;
+ }
+
+ public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object serviceAccount_ = "";
+ /**
+ *
+ *
+ * + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + *+ * + *
string service_account = 11;
+ *
+ * @return The serviceAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = serviceAccount_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceAccount_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. + *+ * + *
string service_account = 11;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = serviceAccount_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serviceAccount_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISABLE_CONTAINER_LOGGING_FIELD_NUMBER = 15;
+ private boolean disableContainerLogging_ = false;
+ /**
+ *
+ *
+ * + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * + * User can disable container logging by setting this flag to true. + *+ * + *
bool disable_container_logging = 15;
+ *
+ * @return The disableContainerLogging.
+ */
+ @java.lang.Override
+ public boolean getDisableContainerLogging() {
+ return disableContainerLogging_;
+ }
+
+ public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 13;
+ private boolean enableAccessLogging_ = false;
+ /**
+ *
+ *
+ * + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + *+ * + *
bool enable_access_logging = 13;
+ *
+ * @return The enableAccessLogging.
+ */
+ @java.lang.Override
+ public boolean getEnableAccessLogging() {
+ return enableAccessLogging_;
+ }
+
+ public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 14;
+ private com.google.cloud.vertexai.api.PrivateEndpoints privateEndpoints_;
+ /**
+ *
+ *
+ * + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + *+ * + *
+ * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the privateEndpoints field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrivateEndpoints() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + *+ * + *
+ * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The privateEndpoints.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.PrivateEndpoints getPrivateEndpoints() {
+ return privateEndpoints_ == null
+ ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance()
+ : privateEndpoints_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + *+ * + *
+ * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() {
+ return privateEndpoints_ == null
+ ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance()
+ : privateEndpoints_;
+ }
+
+ public static final int FASTER_DEPLOYMENT_CONFIG_FIELD_NUMBER = 23;
+ private com.google.cloud.vertexai.api.FasterDeploymentConfig fasterDeploymentConfig_;
+ /**
+ *
+ *
+ * + * Configuration for faster model deployment. + *+ * + *
.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;
+ *
+ * @return Whether the fasterDeploymentConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasFasterDeploymentConfig() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Configuration for faster model deployment. + *+ * + *
.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;
+ *
+ * @return The fasterDeploymentConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.FasterDeploymentConfig getFasterDeploymentConfig() {
+ return fasterDeploymentConfig_ == null
+ ? com.google.cloud.vertexai.api.FasterDeploymentConfig.getDefaultInstance()
+ : fasterDeploymentConfig_;
+ }
+ /**
+ *
+ *
+ * + * Configuration for faster model deployment. + *+ * + *
.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.FasterDeploymentConfigOrBuilder
+ getFasterDeploymentConfigOrBuilder() {
+ return fasterDeploymentConfig_ == null
+ ? com.google.cloud.vertexai.api.FasterDeploymentConfig.getDefaultInstance()
+ : fasterDeploymentConfig_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 26;
+ private com.google.cloud.vertexai.api.DeployedModel.Status status_;
+ /**
+ *
+ *
+ * + * Output only. Runtime status of the deployed model. + *+ * + *
+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Runtime status of the deployed model. + *+ * + *
+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.DeployedModel.Status getStatus() {
+ return status_ == null
+ ? com.google.cloud.vertexai.api.DeployedModel.Status.getDefaultInstance()
+ : status_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Runtime status of the deployed model. + *+ * + *
+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.DeployedModel.StatusOrBuilder getStatusOrBuilder() {
+ return status_ == null
+ ? com.google.cloud.vertexai.api.DeployedModel.Status.getDefaultInstance()
+ : status_;
+ }
+
+ public static final int SYSTEM_LABELS_FIELD_NUMBER = 28;
+
+ private static final class SystemLabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. + *+ * + *
map<string, string> system_labels = 28;
+ */
+ @java.lang.Override
+ public boolean containsSystemLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetSystemLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getSystemLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. + *+ * + *
map<string, string> system_labels = 28;
+ */
+ @java.lang.Override
+ public java.util.Map+ * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. + *+ * + *
map<string, string> system_labels = 28;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getSystemLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. + *+ * + *
map<string, string> system_labels = 28;
+ */
+ @java.lang.Override
+ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. Spec for configuring speculative decoding. + *+ * + *
+ * .google.cloud.vertexai.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the speculativeDecodingSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpeculativeDecodingSpec() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Spec for configuring speculative decoding. + *+ * + *
+ * .google.cloud.vertexai.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The speculativeDecodingSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.SpeculativeDecodingSpec getSpeculativeDecodingSpec() {
+ return speculativeDecodingSpec_ == null
+ ? com.google.cloud.vertexai.api.SpeculativeDecodingSpec.getDefaultInstance()
+ : speculativeDecodingSpec_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Spec for configuring speculative decoding. + *+ * + *
+ * .google.cloud.vertexai.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.SpeculativeDecodingSpecOrBuilder
+ getSpeculativeDecodingSpecOrBuilder() {
+ return speculativeDecodingSpec_ == null
+ ? com.google.cloud.vertexai.api.SpeculativeDecodingSpec.getDefaultInstance()
+ : speculativeDecodingSpec_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getCreateTime());
+ }
+ if (predictionResourcesCase_ == 7) {
+ output.writeMessage(
+ 7, (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_);
+ }
+ if (predictionResourcesCase_ == 8) {
+ output.writeMessage(
+ 8, (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(9, getExplanationSpec());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccount_);
+ }
+ if (enableAccessLogging_ != false) {
+ output.writeBool(13, enableAccessLogging_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(14, getPrivateEndpoints());
+ }
+ if (disableContainerLogging_ != false) {
+ output.writeBool(15, disableContainerLogging_);
+ }
+ if (predictionResourcesCase_ == 17) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 17, predictionResources_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_);
+ }
+ if (disableExplanations_ != false) {
+ output.writeBool(19, disableExplanations_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(23, getFasterDeploymentConfig());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(26, getStatus());
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetSystemLabels(), SystemLabelsDefaultEntryHolder.defaultEntry, 28);
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(30, getSpeculativeDecodingSpec());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
+ }
+ if (predictionResourcesCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_);
+ }
+ if (predictionResourcesCase_ == 8) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 8, (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExplanationSpec());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccount_);
+ }
+ if (enableAccessLogging_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableAccessLogging_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints());
+ }
+ if (disableContainerLogging_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, disableContainerLogging_);
+ }
+ if (predictionResourcesCase_ == 17) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, predictionResources_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelVersionId_);
+ }
+ if (disableExplanations_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, disableExplanations_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(23, getFasterDeploymentConfig());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getStatus());
+ }
+ for (java.util.Map.Entry+ * A deployment of a Model. Endpoints contain one or more DeployedModels. + *+ * + * Protobuf type {@code google.cloud.vertexai.v1.DeployedModel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * @return Whether the dedicatedResources field is set.
+ */
@java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- if (dedicatedResourcesBuilder_ != null) {
- dedicatedResourcesBuilder_.clear();
+ public boolean hasDedicatedResources() {
+ return predictionResourcesCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * @return The dedicatedResources.
+ */
+ @java.lang.Override
+ public com.google.cloud.vertexai.api.DedicatedResources getDedicatedResources() {
+ if (dedicatedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 7) {
+ return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ } else {
+ if (predictionResourcesCase_ == 7) {
+ return dedicatedResourcesBuilder_.getMessage();
+ }
+ return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
}
- if (automaticResourcesBuilder_ != null) {
- automaticResourcesBuilder_.clear();
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ public Builder setDedicatedResources(com.google.cloud.vertexai.api.DedicatedResources value) {
+ if (dedicatedResourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ predictionResources_ = value;
+ onChanged();
+ } else {
+ dedicatedResourcesBuilder_.setMessage(value);
}
- id_ = "";
- model_ = "";
- modelVersionId_ = "";
- displayName_ = "";
- createTime_ = null;
- if (createTimeBuilder_ != null) {
- createTimeBuilder_.dispose();
- createTimeBuilder_ = null;
+ predictionResourcesCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ public Builder setDedicatedResources(
+ com.google.cloud.vertexai.api.DedicatedResources.Builder builderForValue) {
+ if (dedicatedResourcesBuilder_ == null) {
+ predictionResources_ = builderForValue.build();
+ onChanged();
+ } else {
+ dedicatedResourcesBuilder_.setMessage(builderForValue.build());
}
- explanationSpec_ = null;
- if (explanationSpecBuilder_ != null) {
- explanationSpecBuilder_.dispose();
- explanationSpecBuilder_ = null;
+ predictionResourcesCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ public Builder mergeDedicatedResources(com.google.cloud.vertexai.api.DedicatedResources value) {
+ if (dedicatedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 7
+ && predictionResources_
+ != com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance()) {
+ predictionResources_ =
+ com.google.cloud.vertexai.api.DedicatedResources.newBuilder(
+ (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ predictionResources_ = value;
+ }
+ onChanged();
+ } else {
+ if (predictionResourcesCase_ == 7) {
+ dedicatedResourcesBuilder_.mergeFrom(value);
+ } else {
+ dedicatedResourcesBuilder_.setMessage(value);
+ }
}
- disableExplanations_ = false;
- serviceAccount_ = "";
- disableContainerLogging_ = false;
- enableAccessLogging_ = false;
- privateEndpoints_ = null;
- if (privateEndpointsBuilder_ != null) {
- privateEndpointsBuilder_.dispose();
- privateEndpointsBuilder_ = null;
+ predictionResourcesCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ public Builder clearDedicatedResources() {
+ if (dedicatedResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 7) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ onChanged();
+ }
+ } else {
+ if (predictionResourcesCase_ == 7) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ }
+ dedicatedResourcesBuilder_.clear();
}
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
return this;
}
-
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ public com.google.cloud.vertexai.api.DedicatedResources.Builder getDedicatedResourcesBuilder() {
+ return getDedicatedResourcesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
@java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.vertexai.api.EndpointProto
- .internal_static_google_cloud_vertexai_v1_DeployedModel_descriptor;
+ public com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder
+ getDedicatedResourcesOrBuilder() {
+ if ((predictionResourcesCase_ == 7) && (dedicatedResourcesBuilder_ != null)) {
+ return dedicatedResourcesBuilder_.getMessageOrBuilder();
+ } else {
+ if (predictionResourcesCase_ == 7) {
+ return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ }
}
-
- @java.lang.Override
- public com.google.cloud.vertexai.api.DeployedModel getDefaultInstanceForType() {
- return com.google.cloud.vertexai.api.DeployedModel.getDefaultInstance();
+ /**
+ *
+ *
+ * + * A description of resources that are dedicated to the DeployedModel, and + * that need a higher degree of manual configuration. + *+ * + *
.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.DedicatedResources,
+ com.google.cloud.vertexai.api.DedicatedResources.Builder,
+ com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder>
+ getDedicatedResourcesFieldBuilder() {
+ if (dedicatedResourcesBuilder_ == null) {
+ if (!(predictionResourcesCase_ == 7)) {
+ predictionResources_ =
+ com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ }
+ dedicatedResourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.DedicatedResources,
+ com.google.cloud.vertexai.api.DedicatedResources.Builder,
+ com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder>(
+ (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_,
+ getParentForChildren(),
+ isClean());
+ predictionResources_ = null;
+ }
+ predictionResourcesCase_ = 7;
+ onChanged();
+ return dedicatedResourcesBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.AutomaticResources,
+ com.google.cloud.vertexai.api.AutomaticResources.Builder,
+ com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>
+ automaticResourcesBuilder_;
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * @return Whether the automaticResources field is set.
+ */
@java.lang.Override
- public com.google.cloud.vertexai.api.DeployedModel build() {
- com.google.cloud.vertexai.api.DeployedModel result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ public boolean hasAutomaticResources() {
+ return predictionResourcesCase_ == 8;
}
-
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * @return The automaticResources.
+ */
@java.lang.Override
- public com.google.cloud.vertexai.api.DeployedModel buildPartial() {
- com.google.cloud.vertexai.api.DeployedModel result =
- new com.google.cloud.vertexai.api.DeployedModel(this);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ public com.google.cloud.vertexai.api.AutomaticResources getAutomaticResources() {
+ if (automaticResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 8) {
+ return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
+ } else {
+ if (predictionResourcesCase_ == 8) {
+ return automaticResourcesBuilder_.getMessage();
+ }
+ return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
}
- buildPartialOneofs(result);
- onBuilt();
- return result;
}
-
- private void buildPartial0(com.google.cloud.vertexai.api.DeployedModel result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.id_ = id_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.model_ = model_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.modelVersionId_ = modelVersionId_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.displayName_ = displayName_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.explanationSpec_ =
- explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.disableExplanations_ = disableExplanations_;
- }
- if (((from_bitField0_ & 0x00000400) != 0)) {
- result.serviceAccount_ = serviceAccount_;
- }
- if (((from_bitField0_ & 0x00000800) != 0)) {
- result.disableContainerLogging_ = disableContainerLogging_;
- }
- if (((from_bitField0_ & 0x00001000) != 0)) {
- result.enableAccessLogging_ = enableAccessLogging_;
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ public Builder setAutomaticResources(com.google.cloud.vertexai.api.AutomaticResources value) {
+ if (automaticResourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ predictionResources_ = value;
+ onChanged();
+ } else {
+ automaticResourcesBuilder_.setMessage(value);
}
- if (((from_bitField0_ & 0x00002000) != 0)) {
- result.privateEndpoints_ =
- privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build();
- to_bitField0_ |= 0x00000004;
+ predictionResourcesCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ public Builder setAutomaticResources(
+ com.google.cloud.vertexai.api.AutomaticResources.Builder builderForValue) {
+ if (automaticResourcesBuilder_ == null) {
+ predictionResources_ = builderForValue.build();
+ onChanged();
+ } else {
+ automaticResourcesBuilder_.setMessage(builderForValue.build());
}
- result.bitField0_ |= to_bitField0_;
+ predictionResourcesCase_ = 8;
+ return this;
}
-
- private void buildPartialOneofs(com.google.cloud.vertexai.api.DeployedModel result) {
- result.predictionResourcesCase_ = predictionResourcesCase_;
- result.predictionResources_ = this.predictionResources_;
- if (predictionResourcesCase_ == 7 && dedicatedResourcesBuilder_ != null) {
- result.predictionResources_ = dedicatedResourcesBuilder_.build();
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ public Builder mergeAutomaticResources(com.google.cloud.vertexai.api.AutomaticResources value) {
+ if (automaticResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 8
+ && predictionResources_
+ != com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance()) {
+ predictionResources_ =
+ com.google.cloud.vertexai.api.AutomaticResources.newBuilder(
+ (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ predictionResources_ = value;
+ }
+ onChanged();
+ } else {
+ if (predictionResourcesCase_ == 8) {
+ automaticResourcesBuilder_.mergeFrom(value);
+ } else {
+ automaticResourcesBuilder_.setMessage(value);
+ }
}
- if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) {
- result.predictionResources_ = automaticResourcesBuilder_.build();
+ predictionResourcesCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ public Builder clearAutomaticResources() {
+ if (automaticResourcesBuilder_ == null) {
+ if (predictionResourcesCase_ == 8) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ onChanged();
+ }
+ } else {
+ if (predictionResourcesCase_ == 8) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ }
+ automaticResourcesBuilder_.clear();
}
+ return this;
}
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ public com.google.cloud.vertexai.api.AutomaticResources.Builder getAutomaticResourcesBuilder() {
+ return getAutomaticResourcesFieldBuilder().getBuilder();
}
-
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
@java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ public com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder
+ getAutomaticResourcesOrBuilder() {
+ if ((predictionResourcesCase_ == 8) && (automaticResourcesBuilder_ != null)) {
+ return automaticResourcesBuilder_.getMessageOrBuilder();
+ } else {
+ if (predictionResourcesCase_ == 8) {
+ return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
+ }
+ return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
+ }
}
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ /**
+ *
+ *
+ * + * A description of resources that to large degree are decided by Vertex + * AI, and require only a modest additional configuration. + *+ * + *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.AutomaticResources,
+ com.google.cloud.vertexai.api.AutomaticResources.Builder,
+ com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>
+ getAutomaticResourcesFieldBuilder() {
+ if (automaticResourcesBuilder_ == null) {
+ if (!(predictionResourcesCase_ == 8)) {
+ predictionResources_ =
+ com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
+ }
+ automaticResourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.AutomaticResources,
+ com.google.cloud.vertexai.api.AutomaticResources.Builder,
+ com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>(
+ (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_,
+ getParentForChildren(),
+ isClean());
+ predictionResources_ = null;
+ }
+ predictionResourcesCase_ = 8;
+ onChanged();
+ return automaticResourcesBuilder_;
}
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return Whether the sharedResources field is set.
+ */
@java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ public boolean hasSharedResources() {
+ return predictionResourcesCase_ == 17;
}
-
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The sharedResources.
+ */
@java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.vertexai.api.DeployedModel) {
- return mergeFrom((com.google.cloud.vertexai.api.DeployedModel) other);
+ public java.lang.String getSharedResources() {
+ java.lang.Object ref = "";
+ if (predictionResourcesCase_ == 17) {
+ ref = predictionResources_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (predictionResourcesCase_ == 17) {
+ predictionResources_ = s;
+ }
+ return s;
} else {
- super.mergeFrom(other);
- return this;
+ return (java.lang.String) ref;
}
}
-
- public Builder mergeFrom(com.google.cloud.vertexai.api.DeployedModel other) {
- if (other == com.google.cloud.vertexai.api.DeployedModel.getDefaultInstance()) return this;
- if (!other.getId().isEmpty()) {
- id_ = other.id_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (!other.getModel().isEmpty()) {
- model_ = other.model_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- if (!other.getModelVersionId().isEmpty()) {
- modelVersionId_ = other.modelVersionId_;
- bitField0_ |= 0x00000020;
- onChanged();
- }
- if (!other.getDisplayName().isEmpty()) {
- displayName_ = other.displayName_;
- bitField0_ |= 0x00000040;
- onChanged();
- }
- if (other.hasCreateTime()) {
- mergeCreateTime(other.getCreateTime());
- }
- if (other.hasExplanationSpec()) {
- mergeExplanationSpec(other.getExplanationSpec());
- }
- if (other.getDisableExplanations() != false) {
- setDisableExplanations(other.getDisableExplanations());
- }
- if (!other.getServiceAccount().isEmpty()) {
- serviceAccount_ = other.serviceAccount_;
- bitField0_ |= 0x00000400;
- onChanged();
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for sharedResources.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSharedResourcesBytes() {
+ java.lang.Object ref = "";
+ if (predictionResourcesCase_ == 17) {
+ ref = predictionResources_;
}
- if (other.getDisableContainerLogging() != false) {
- setDisableContainerLogging(other.getDisableContainerLogging());
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (predictionResourcesCase_ == 17) {
+ predictionResources_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- if (other.getEnableAccessLogging() != false) {
- setEnableAccessLogging(other.getEnableAccessLogging());
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The sharedResources to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSharedResources(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- if (other.hasPrivateEndpoints()) {
- mergePrivateEndpoints(other.getPrivateEndpoints());
+ predictionResourcesCase_ = 17;
+ predictionResources_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSharedResources() {
+ if (predictionResourcesCase_ == 17) {
+ predictionResourcesCase_ = 0;
+ predictionResources_ = null;
+ onChanged();
}
- switch (other.getPredictionResourcesCase()) {
- case DEDICATED_RESOURCES:
- {
- mergeDedicatedResources(other.getDedicatedResources());
- break;
- }
- case AUTOMATIC_RESOURCES:
- {
- mergeAutomaticResources(other.getAutomaticResources());
- break;
- }
- case SHARED_RESOURCES:
- {
- predictionResourcesCase_ = 17;
- predictionResources_ = other.predictionResources_;
- onChanged();
- break;
- }
- case PREDICTIONRESOURCES_NOT_SET:
- {
- break;
- }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the shared DeploymentResourcePool to deploy on.
+ * Format:
+ * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ *
+ *
+ * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for sharedResources to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ checkByteStringIsUtf8(value);
+ predictionResourcesCase_ = 17;
+ predictionResources_ = value;
onChanged();
return this;
}
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ private java.lang.Object id_ = "";
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- id_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000008;
- break;
- } // case 10
- case 18:
- {
- model_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000010;
- break;
- } // case 18
- case 26:
- {
- displayName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 26
- case 50:
- {
- input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
- break;
- } // case 50
- case 58:
- {
- input.readMessage(
- getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry);
- predictionResourcesCase_ = 7;
- break;
- } // case 58
- case 66:
- {
- input.readMessage(
- getAutomaticResourcesFieldBuilder().getBuilder(), extensionRegistry);
- predictionResourcesCase_ = 8;
- break;
- } // case 66
- case 74:
- {
- input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000100;
- break;
- } // case 74
- case 90:
- {
- serviceAccount_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000400;
- break;
- } // case 90
- case 104:
- {
- enableAccessLogging_ = input.readBool();
- bitField0_ |= 0x00001000;
- break;
- } // case 104
- case 114:
- {
- input.readMessage(
- getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00002000;
- break;
- } // case 114
- case 120:
- {
- disableContainerLogging_ = input.readBool();
- bitField0_ |= 0x00000800;
- break;
- } // case 120
- case 138:
- {
- java.lang.String s = input.readStringRequireUtf8();
- predictionResourcesCase_ = 17;
- predictionResources_ = s;
- break;
- } // case 138
- case 146:
- {
- modelVersionId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 146
- case 152:
- {
- disableExplanations_ = input.readBool();
- bitField0_ |= 0x00000200;
- break;
- } // case 152
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
+ }
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ id_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
return this;
}
-
- private int predictionResourcesCase_ = 0;
- private java.lang.Object predictionResources_;
-
- public PredictionResourcesCase getPredictionResourcesCase() {
- return PredictionResourcesCase.forNumber(predictionResourcesCase_);
- }
-
- public Builder clearPredictionResources() {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
+ /**
+ *
+ *
+ * + * Immutable. The ID of the DeployedModel. If not provided upon deployment, + * Vertex AI will generate a value for this ID. + * + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. + *+ * + *
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
- private int bitField0_;
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.DedicatedResources,
- com.google.cloud.vertexai.api.DedicatedResources.Builder,
- com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder>
- dedicatedResourcesBuilder_;
+ private java.lang.Object model_ = "";
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return Whether the dedicatedResources field is set.
+ * @return The model.
*/
- @java.lang.Override
- public boolean hasDedicatedResources() {
- return predictionResourcesCase_ == 7;
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*
- * @return The dedicatedResources.
+ * @return The bytes for model.
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.DedicatedResources getDedicatedResources() {
- if (dedicatedResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 7) {
- return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
- }
- return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
} else {
- if (predictionResourcesCase_ == 7) {
- return dedicatedResourcesBuilder_.getMessage();
- }
- return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The model to set.
+ * @return This builder for chaining.
*/
- public Builder setDedicatedResources(com.google.cloud.vertexai.api.DedicatedResources value) {
- if (dedicatedResourcesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- predictionResources_ = value;
- onChanged();
- } else {
- dedicatedResourcesBuilder_.setMessage(value);
+ public Builder setModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- predictionResourcesCase_ = 7;
+ model_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
*/
- public Builder setDedicatedResources(
- com.google.cloud.vertexai.api.DedicatedResources.Builder builderForValue) {
- if (dedicatedResourcesBuilder_ == null) {
- predictionResources_ = builderForValue.build();
- onChanged();
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Model that this is the deployment of.
+ * Note that the Model may be in a different location than the DeployedModel's
+ * Endpoint.
+ *
+ * The resource name may contain version id or version alias to specify the
+ * version.
+ * Example: `projects/{project}/locations/{location}/models/{model}@2`
+ * or
+ * `projects/{project}/locations/{location}/models/{model}@golden`
+ * if no version is specified, the default version will be deployed.
+ *
+ *
+ *
+ * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object modelVersionId_ = "";
+ /**
+ *
+ *
+ * + * Output only. The version ID of the model that is deployed. + *+ * + *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The modelVersionId.
+ */
+ public java.lang.String getModelVersionId() {
+ java.lang.Object ref = modelVersionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ modelVersionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The version ID of the model that is deployed. + *+ * + *
string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for modelVersionId.
+ */
+ public com.google.protobuf.ByteString getModelVersionIdBytes() {
+ java.lang.Object ref = modelVersionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modelVersionId_ = b;
+ return b;
} else {
- dedicatedResourcesBuilder_.setMessage(builderForValue.build());
+ return (com.google.protobuf.ByteString) ref;
}
- predictionResourcesCase_ = 7;
- return this;
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Output only. The version ID of the model that is deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The modelVersionId to set.
+ * @return This builder for chaining.
*/
- public Builder mergeDedicatedResources(com.google.cloud.vertexai.api.DedicatedResources value) {
- if (dedicatedResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 7
- && predictionResources_
- != com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance()) {
- predictionResources_ =
- com.google.cloud.vertexai.api.DedicatedResources.newBuilder(
- (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- predictionResources_ = value;
- }
- onChanged();
- } else {
- if (predictionResourcesCase_ == 7) {
- dedicatedResourcesBuilder_.mergeFrom(value);
- } else {
- dedicatedResourcesBuilder_.setMessage(value);
- }
+ public Builder setModelVersionId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- predictionResourcesCase_ = 7;
+ modelVersionId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
return this;
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Output only. The version ID of the model that is deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
*/
- public Builder clearDedicatedResources() {
- if (dedicatedResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 7) {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
- onChanged();
- }
- } else {
- if (predictionResourcesCase_ == 7) {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
- }
- dedicatedResourcesBuilder_.clear();
- }
+ public Builder clearModelVersionId() {
+ modelVersionId_ = getDefaultInstance().getModelVersionId();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
return this;
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * Output only. The version ID of the model that is deployed.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for modelVersionId to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.vertexai.api.DedicatedResources.Builder getDedicatedResourcesBuilder() {
- return getDedicatedResourcesFieldBuilder().getBuilder();
+ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ modelVersionId_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
}
+
+ private java.lang.Object displayName_ = "";
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * The display name of the DeployedModel. If not provided upon creation,
+ * the Model's display_name is used.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * string display_name = 3;
+ *
+ * @return The displayName.
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder
- getDedicatedResourcesOrBuilder() {
- if ((predictionResourcesCase_ == 7) && (dedicatedResourcesBuilder_ != null)) {
- return dedicatedResourcesBuilder_.getMessageOrBuilder();
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
} else {
- if (predictionResourcesCase_ == 7) {
- return (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_;
- }
- return com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
+ return (java.lang.String) ref;
}
}
/**
*
*
*
- * A description of resources that are dedicated to the DeployedModel, and
- * that need a higher degree of manual configuration.
+ * The display name of the DeployedModel. If not provided upon creation,
+ * the Model's display_name is used.
*
*
- * .google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;
+ * string display_name = 3;
+ *
+ * @return The bytes for displayName.
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.DedicatedResources,
- com.google.cloud.vertexai.api.DedicatedResources.Builder,
- com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder>
- getDedicatedResourcesFieldBuilder() {
- if (dedicatedResourcesBuilder_ == null) {
- if (!(predictionResourcesCase_ == 7)) {
- predictionResources_ =
- com.google.cloud.vertexai.api.DedicatedResources.getDefaultInstance();
- }
- dedicatedResourcesBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.DedicatedResources,
- com.google.cloud.vertexai.api.DedicatedResources.Builder,
- com.google.cloud.vertexai.api.DedicatedResourcesOrBuilder>(
- (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_,
- getParentForChildren(),
- isClean());
- predictionResources_ = null;
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- predictionResourcesCase_ = 7;
- onChanged();
- return dedicatedResourcesBuilder_;
}
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.AutomaticResources,
- com.google.cloud.vertexai.api.AutomaticResources.Builder,
- com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>
- automaticResourcesBuilder_;
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * The display name of the DeployedModel. If not provided upon creation,
+ * the Model's display_name is used.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ * string display_name = 3;
*
- * @return Whether the automaticResources field is set.
+ * @param value The displayName to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public boolean hasAutomaticResources() {
- return predictionResourcesCase_ == 8;
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
}
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * The display name of the DeployedModel. If not provided upon creation,
+ * the Model's display_name is used.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ * string display_name = 3;
*
- * @return The automaticResources.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.AutomaticResources getAutomaticResources() {
- if (automaticResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 8) {
- return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
- }
- return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
- } else {
- if (predictionResourcesCase_ == 8) {
- return automaticResourcesBuilder_.getMessage();
- }
- return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
- }
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
}
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * The display name of the DeployedModel. If not provided upon creation,
+ * the Model's display_name is used.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ * string display_name = 3;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
*/
- public Builder setAutomaticResources(com.google.cloud.vertexai.api.AutomaticResources value) {
- if (automaticResourcesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- predictionResources_ = value;
- onChanged();
- } else {
- automaticResourcesBuilder_.setMessage(value);
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- predictionResourcesCase_ = 8;
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
return this;
}
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
*/
- public Builder setAutomaticResources(
- com.google.cloud.vertexai.api.AutomaticResources.Builder builderForValue) {
- if (automaticResourcesBuilder_ == null) {
- predictionResources_ = builderForValue.build();
- onChanged();
- } else {
- automaticResourcesBuilder_.setMessage(builderForValue.build());
- }
- predictionResourcesCase_ = 8;
- return this;
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
*/
- public Builder mergeAutomaticResources(com.google.cloud.vertexai.api.AutomaticResources value) {
- if (automaticResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 8
- && predictionResources_
- != com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance()) {
- predictionResources_ =
- com.google.cloud.vertexai.api.AutomaticResources.newBuilder(
- (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- predictionResources_ = value;
- }
- onChanged();
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
} else {
- if (predictionResourcesCase_ == 8) {
- automaticResourcesBuilder_.mergeFrom(value);
- } else {
- automaticResourcesBuilder_.setMessage(value);
- }
+ return createTimeBuilder_.getMessage();
}
- predictionResourcesCase_ = 8;
- return this;
}
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearAutomaticResources() {
- if (automaticResourcesBuilder_ == null) {
- if (predictionResourcesCase_ == 8) {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
- onChanged();
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ createTime_ = value;
} else {
- if (predictionResourcesCase_ == 8) {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
- }
- automaticResourcesBuilder_.clear();
+ createTimeBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000080;
+ onChanged();
return this;
}
/**
*
*
* - * A description of resources that to large degree are decided by Vertex - * AI, and require only a modest additional configuration. - *- * - *
.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
- */
- public com.google.cloud.vertexai.api.AutomaticResources.Builder getAutomaticResourcesBuilder() {
- return getAutomaticResourcesFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder
- getAutomaticResourcesOrBuilder() {
- if ((predictionResourcesCase_ == 8) && (automaticResourcesBuilder_ != null)) {
- return automaticResourcesBuilder_.getMessageOrBuilder();
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
} else {
- if (predictionResourcesCase_ == 8) {
- return (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_;
- }
- return com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
+ createTimeBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
}
/**
*
*
*
- * A description of resources that to large degree are decided by Vertex
- * AI, and require only a modest additional configuration.
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * .google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.AutomaticResources,
- com.google.cloud.vertexai.api.AutomaticResources.Builder,
- com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>
- getAutomaticResourcesFieldBuilder() {
- if (automaticResourcesBuilder_ == null) {
- if (!(predictionResourcesCase_ == 8)) {
- predictionResources_ =
- com.google.cloud.vertexai.api.AutomaticResources.getDefaultInstance();
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
}
- automaticResourcesBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.vertexai.api.AutomaticResources,
- com.google.cloud.vertexai.api.AutomaticResources.Builder,
- com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder>(
- (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_,
- getParentForChildren(),
- isClean());
- predictionResources_ = null;
+ } else {
+ createTimeBuilder_.mergeFrom(value);
}
- predictionResourcesCase_ = 8;
- onChanged();
- return automaticResourcesBuilder_;
+ if (createTime_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
}
-
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return Whether the sharedResources field is set.
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public boolean hasSharedResources() {
- return predictionResourcesCase_ == 17;
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
}
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return The sharedResources.
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public java.lang.String getSharedResources() {
- java.lang.Object ref = "";
- if (predictionResourcesCase_ == 17) {
- ref = predictionResources_;
- }
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (predictionResourcesCase_ == 17) {
- predictionResources_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @return The bytes for sharedResources.
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getSharedResourcesBytes() {
- java.lang.Object ref = "";
- if (predictionResourcesCase_ == 17) {
- ref = predictionResources_;
- }
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- if (predictionResourcesCase_ == 17) {
- predictionResources_ = b;
- }
- return b;
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
} else {
- return (com.google.protobuf.ByteString) ref;
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
}
}
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Output only. Timestamp when the DeployedModel was created.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
- *
- * @param value The sharedResources to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setSharedResources(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
}
- predictionResourcesCase_ = 17;
- predictionResources_ = value;
- onChanged();
- return this;
+ return createTimeBuilder_;
}
+
+ private com.google.cloud.vertexai.api.ExplanationSpec explanationSpec_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ExplanationSpec,
+ com.google.cloud.vertexai.api.ExplanationSpec.Builder,
+ com.google.cloud.vertexai.api.ExplanationSpecOrBuilder>
+ explanationSpecBuilder_;
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Explanation configuration for this DeployedModel.
+ *
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*
- * @return This builder for chaining.
+ * @return Whether the explanationSpec field is set.
*/
- public Builder clearSharedResources() {
- if (predictionResourcesCase_ == 17) {
- predictionResourcesCase_ = 0;
- predictionResources_ = null;
- onChanged();
- }
- return this;
+ public boolean hasExplanationSpec() {
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
- * The resource name of the shared DeploymentResourcePool to deploy on.
- * Format:
- * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
+ * Explanation configuration for this DeployedModel.
+ *
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string shared_resources = 17 [(.google.api.resource_reference) = { ... }
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*
- * @param value The bytes for sharedResources to set.
- * @return This builder for chaining.
+ * @return The explanationSpec.
*/
- public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.vertexai.api.ExplanationSpec getExplanationSpec() {
+ if (explanationSpecBuilder_ == null) {
+ return explanationSpec_ == null
+ ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
+ : explanationSpec_;
+ } else {
+ return explanationSpecBuilder_.getMessage();
}
- checkByteStringIsUtf8(value);
- predictionResourcesCase_ = 17;
- predictionResources_ = value;
- onChanged();
- return this;
}
-
- private java.lang.Object id_ = "";
/**
*
*
*
- * Immutable. The ID of the DeployedModel. If not provided upon deployment,
- * Vertex AI will generate a value for this ID.
+ * Explanation configuration for this DeployedModel.
*
- * This value should be 1-10 characters, and valid characters are `/[0-9]/`.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @return The id.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- id_ = s;
- return s;
+ public Builder setExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpec value) {
+ if (explanationSpecBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ explanationSpec_ = value;
} else {
- return (java.lang.String) ref;
+ explanationSpecBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Immutable. The ID of the DeployedModel. If not provided upon deployment,
- * Vertex AI will generate a value for this ID.
+ * Explanation configuration for this DeployedModel.
*
- * This value should be 1-10 characters, and valid characters are `/[0-9]/`.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @return The bytes for id.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public com.google.protobuf.ByteString getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- id_ = b;
- return b;
+ public Builder setExplanationSpec(
+ com.google.cloud.vertexai.api.ExplanationSpec.Builder builderForValue) {
+ if (explanationSpecBuilder_ == null) {
+ explanationSpec_ = builderForValue.build();
} else {
- return (com.google.protobuf.ByteString) ref;
+ explanationSpecBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Immutable. The ID of the DeployedModel. If not provided upon deployment,
- * Vertex AI will generate a value for this ID.
+ * Explanation configuration for this DeployedModel.
*
- * This value should be 1-10 characters, and valid characters are `/[0-9]/`.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @param value The id to set.
- * @return This builder for chaining.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public Builder setId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder mergeExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpec value) {
+ if (explanationSpecBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && explanationSpec_ != null
+ && explanationSpec_
+ != com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()) {
+ getExplanationSpecBuilder().mergeFrom(value);
+ } else {
+ explanationSpec_ = value;
+ }
+ } else {
+ explanationSpecBuilder_.mergeFrom(value);
+ }
+ if (explanationSpec_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
}
- id_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
return this;
}
/**
*
*
*
- * Immutable. The ID of the DeployedModel. If not provided upon deployment,
- * Vertex AI will generate a value for this ID.
+ * Explanation configuration for this DeployedModel.
*
- * This value should be 1-10 characters, and valid characters are `/[0-9]/`.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @return This builder for chaining.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public Builder clearId() {
- id_ = getDefaultInstance().getId();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder clearExplanationSpec() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ explanationSpec_ = null;
+ if (explanationSpecBuilder_ != null) {
+ explanationSpecBuilder_.dispose();
+ explanationSpecBuilder_ = null;
+ }
onChanged();
return this;
}
@@ -2320,152 +4700,148 @@ public Builder clearId() {
*
*
*
- * Immutable. The ID of the DeployedModel. If not provided upon deployment,
- * Vertex AI will generate a value for this ID.
+ * Explanation configuration for this DeployedModel.
*
- * This value should be 1-10 characters, and valid characters are `/[0-9]/`.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- * string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- *
- * @param value The bytes for id to set.
- * @return This builder for chaining.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public Builder setIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- id_ = value;
- bitField0_ |= 0x00000008;
+ public com.google.cloud.vertexai.api.ExplanationSpec.Builder getExplanationSpecBuilder() {
+ bitField0_ |= 0x00000100;
onChanged();
- return this;
+ return getExplanationSpecFieldBuilder().getBuilder();
}
-
- private java.lang.Object model_ = "";
/**
*
*
*
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
+ * Explanation configuration for this DeployedModel.
*
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The model.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public java.lang.String getModel() {
- java.lang.Object ref = model_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- model_ = s;
- return s;
+ public com.google.cloud.vertexai.api.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() {
+ if (explanationSpecBuilder_ != null) {
+ return explanationSpecBuilder_.getMessageOrBuilder();
} else {
- return (java.lang.String) ref;
+ return explanationSpec_ == null
+ ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()
+ : explanationSpec_;
}
}
/**
*
*
*
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
+ * Explanation configuration for this DeployedModel.
*
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
+ * When deploying a Model using
+ * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel],
+ * this value overrides the value of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec].
+ * All fields of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * are optional in the request. If a field of
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * is not populated, the value of the same field of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is inherited. If the corresponding
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * is not populated, all fields of the
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
+ * will be used for the explanation configuration.
*
*
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for model.
+ * .google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;
*/
- public com.google.protobuf.ByteString getModelBytes() {
- java.lang.Object ref = model_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- model_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ExplanationSpec,
+ com.google.cloud.vertexai.api.ExplanationSpec.Builder,
+ com.google.cloud.vertexai.api.ExplanationSpecOrBuilder>
+ getExplanationSpecFieldBuilder() {
+ if (explanationSpecBuilder_ == null) {
+ explanationSpecBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.vertexai.api.ExplanationSpec,
+ com.google.cloud.vertexai.api.ExplanationSpec.Builder,
+ com.google.cloud.vertexai.api.ExplanationSpecOrBuilder>(
+ getExplanationSpec(), getParentForChildren(), isClean());
+ explanationSpec_ = null;
}
+ return explanationSpecBuilder_;
}
+
+ private boolean disableExplanations_;
/**
*
*
*
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
- *
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
+ * If true, deploy the model without explainable feature, regardless the
+ * existence of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * or
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec].
*
*
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
+ * bool disable_explanations = 19;
*
- * @param value The model to set.
- * @return This builder for chaining.
+ * @return The disableExplanations.
*/
- public Builder setModel(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- model_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ @java.lang.Override
+ public boolean getDisableExplanations() {
+ return disableExplanations_;
}
/**
*
*
*
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
- *
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
+ * If true, deploy the model without explainable feature, regardless the
+ * existence of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * or
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec].
*
*
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
+ * bool disable_explanations = 19;
*
+ * @param value The disableExplanations to set.
* @return This builder for chaining.
*/
- public Builder clearModel() {
- model_ = getDefaultInstance().getModel();
- bitField0_ = (bitField0_ & ~0x00000010);
+ public Builder setDisableExplanations(boolean value) {
+
+ disableExplanations_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2473,54 +4849,48 @@ public Builder clearModel() {
*
*
*
- * Required. The resource name of the Model that this is the deployment of.
- * Note that the Model may be in a different location than the DeployedModel's
- * Endpoint.
- *
- * The resource name may contain version id or version alias to specify the
- * version.
- * Example: `projects/{project}/locations/{location}/models/{model}@2`
- * or
- * `projects/{project}/locations/{location}/models/{model}@golden`
- * if no version is specified, the default version will be deployed.
+ * If true, deploy the model without explainable feature, regardless the
+ * existence of
+ * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
+ * or
+ * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec].
*
*
- *
- * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
+ * bool disable_explanations = 19;
*
- * @param value The bytes for model to set.
* @return This builder for chaining.
*/
- public Builder setModelBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- model_ = value;
- bitField0_ |= 0x00000010;
+ public Builder clearDisableExplanations() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ disableExplanations_ = false;
onChanged();
return this;
}
- private java.lang.Object modelVersionId_ = "";
+ private java.lang.Object serviceAccount_ = "";
/**
*
*
*
- * Output only. The version ID of the model that is deployed.
+ * The service account that the DeployedModel's container runs as. Specify the
+ * email address of the service account. If this service account is not
+ * specified, the container runs as a service account that doesn't have access
+ * to the resource project.
+ *
+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
+ * permission on this service account.
*
*
- * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string service_account = 11;
*
- * @return The modelVersionId.
+ * @return The serviceAccount.
*/
- public java.lang.String getModelVersionId() {
- java.lang.Object ref = modelVersionId_;
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = serviceAccount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- modelVersionId_ = s;
+ serviceAccount_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -2530,19 +4900,25 @@ public java.lang.String getModelVersionId() {
*
*
*
- * Output only. The version ID of the model that is deployed.
+ * The service account that the DeployedModel's container runs as. Specify the
+ * email address of the service account. If this service account is not
+ * specified, the container runs as a service account that doesn't have access
+ * to the resource project.
+ *
+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
+ * permission on this service account.
*
*
- * string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string service_account = 11;
*
- * @return The bytes for modelVersionId.
+ * @return The bytes for serviceAccount.
*/
- public com.google.protobuf.ByteString getModelVersionIdBytes() {
- java.lang.Object ref = modelVersionId_;
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = serviceAccount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- modelVersionId_ = b;
+ serviceAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -2551,21 +4927,27 @@ public com.google.protobuf.ByteString getModelVersionIdBytes() {
/**
*
*
- * - * Output only. The version ID of the model that is deployed. + *+ * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. ** - *string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];+ *string service_account = 11;* - * @param value The modelVersionId to set. + * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setModelVersionId(java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; - bitField0_ |= 0x00000020; + serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2573,16 +4955,22 @@ public Builder setModelVersionId(java.lang.String value) { * * *- * Output only. The version ID of the model that is deployed. + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. ** - *string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];+ *string service_account = 11;* * @return This builder for chaining. */ - public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -2590,109 +4978,148 @@ public Builder clearModelVersionId() { * * *- * Output only. The version ID of the model that is deployed. + * The service account that the DeployedModel's container runs as. Specify the + * email address of the service account. If this service account is not + * specified, the container runs as a service account that doesn't have access + * to the resource project. + * + * Users deploying the Model must have the `iam.serviceAccounts.actAs` + * permission on this service account. ** - *string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];+ *string service_account = 11;* - * @param value The bytes for modelVersionId to set. + * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; - bitField0_ |= 0x00000020; + serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } - private java.lang.Object displayName_ = ""; + private boolean disableContainerLogging_; /** * * *- * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * + * User can disable container logging by setting this flag to true. ** - *string display_name = 3;+ *bool disable_container_logging = 15;* - * @return The displayName. + * @return The disableContainerLogging. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getDisableContainerLogging() { + return disableContainerLogging_; } /** * * *- * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * + * User can disable container logging by setting this flag to true. ** - *string display_name = 3;+ *bool disable_container_logging = 15;* - * @return The bytes for displayName. + * @param value The disableContainerLogging to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setDisableContainerLogging(boolean value) { + + disableContainerLogging_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *- * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. + * For custom-trained Models and AutoML Tabular Models, the container of the + * DeployedModel instances will send `stderr` and `stdout` streams to + * Cloud Logging by default. Please note that the logs incur cost, + * which are subject to [Cloud Logging + * pricing](https://cloud.google.com/logging/pricing). + * + * User can disable container logging by setting this flag to true. ** - *string display_name = 3;+ *bool disable_container_logging = 15;* - * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000040; + public Builder clearDisableContainerLogging() { + bitField0_ = (bitField0_ & ~0x00000800); + disableContainerLogging_ = false; onChanged(); return this; } + + private boolean enableAccessLogging_; /** * * *- * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. ** - *string display_name = 3;+ *bool enable_access_logging = 13;+ * + * @return The enableAccessLogging. + */ + @java.lang.Override + public boolean getEnableAccessLogging() { + return enableAccessLogging_; + } + /** + * + * + *+ * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. + *+ * + *bool enable_access_logging = 13;* + * @param value The enableAccessLogging to set. * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); + public Builder setEnableAccessLogging(boolean value) { + + enableAccessLogging_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -2700,91 +5127,101 @@ public Builder clearDisplayName() { * * *- * The display name of the DeployedModel. If not provided upon creation, - * the Model's display_name is used. + * If true, online prediction access logs are sent to Cloud + * Logging. + * These logs are like standard server access logs, containing + * information like timestamp and latency for each prediction request. + * + * Note that logs may incur a cost, especially if your project + * receives prediction requests at a high queries per second rate (QPS). + * Estimate your costs before enabling this option. ** - *string display_name = 3;+ *bool enable_access_logging = 13;* - * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000040; + public Builder clearEnableAccessLogging() { + bitField0_ = (bitField0_ & ~0x00001000); + enableAccessLogging_ = false; onChanged(); return this; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.vertexai.api.PrivateEndpoints privateEndpoints_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.vertexai.api.PrivateEndpoints, + com.google.cloud.vertexai.api.PrivateEndpoints.Builder, + com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder> + privateEndpointsBuilder_; /** * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; ** - * @return Whether the createTime field is set. + * @return Whether the privateEndpoints field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasPrivateEndpoints() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; ** - * @return The createTime. + * @return The privateEndpoints. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.vertexai.api.PrivateEndpoints getPrivateEndpoints() { + if (privateEndpointsBuilder_ == null) { + return privateEndpoints_ == null + ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } else { - return createTimeBuilder_.getMessage(); + return privateEndpointsBuilder_.getMessage(); } } /** * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setPrivateEndpoints(com.google.cloud.vertexai.api.PrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + privateEndpoints_ = value; } else { - createTimeBuilder_.setMessage(value); + privateEndpointsBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2792,20 +5229,24 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setPrivateEndpoints( + com.google.cloud.vertexai.api.PrivateEndpoints.Builder builderForValue) { + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + privateEndpointsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2813,27 +5254,31 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); + public Builder mergePrivateEndpoints(com.google.cloud.vertexai.api.PrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && privateEndpoints_ != null + && privateEndpoints_ + != com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance()) { + getPrivateEndpointsBuilder().mergeFrom(value); } else { - createTime_ = value; + privateEndpoints_ = value; } } else { - createTimeBuilder_.mergeFrom(value); + privateEndpointsBuilder_.mergeFrom(value); } - if (createTime_ != null) { - bitField0_ |= 0x00000080; + if (privateEndpoints_ != null) { + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -2842,19 +5287,22 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearPrivateEndpoints() { + bitField0_ = (bitField0_ & ~0x00002000); + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); + privateEndpointsBuilder_ = null; } onChanged(); return this; @@ -2863,173 +5311,135 @@ public Builder clearCreateTime() { * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.vertexai.api.PrivateEndpoints.Builder getPrivateEndpointsBuilder() { + bitField0_ |= 0x00002000; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return getPrivateEndpointsFieldBuilder().getBuilder(); } /** * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { + if (privateEndpointsBuilder_ != null) { + return privateEndpointsBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return privateEndpoints_ == null + ? com.google.cloud.vertexai.api.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } } /** * * *- * Output only. Timestamp when the DeployedModel was created. + * Output only. Provide paths for users to send predict/explain/health + * requests directly to the deployed model services running on Cloud via + * private services access. This field is populated if + * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. ** *- * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; **/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.vertexai.api.PrivateEndpoints, + com.google.cloud.vertexai.api.PrivateEndpoints.Builder, + com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder> + getPrivateEndpointsFieldBuilder() { + if (privateEndpointsBuilder_ == null) { + privateEndpointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.vertexai.api.PrivateEndpoints, + com.google.cloud.vertexai.api.PrivateEndpoints.Builder, + com.google.cloud.vertexai.api.PrivateEndpointsOrBuilder>( + getPrivateEndpoints(), getParentForChildren(), isClean()); + privateEndpoints_ = null; } - return createTimeBuilder_; + return privateEndpointsBuilder_; } - private com.google.cloud.vertexai.api.ExplanationSpec explanationSpec_; + private com.google.cloud.vertexai.api.FasterDeploymentConfig fasterDeploymentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ExplanationSpec, - com.google.cloud.vertexai.api.ExplanationSpec.Builder, - com.google.cloud.vertexai.api.ExplanationSpecOrBuilder> - explanationSpecBuilder_; + com.google.cloud.vertexai.api.FasterDeploymentConfig, + com.google.cloud.vertexai.api.FasterDeploymentConfig.Builder, + com.google.cloud.vertexai.api.FasterDeploymentConfigOrBuilder> + fasterDeploymentConfigBuilder_; /** * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;* - * @return Whether the explanationSpec field is set. + * @return Whether the fasterDeploymentConfig field is set. */ - public boolean hasExplanationSpec() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasFasterDeploymentConfig() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;* - * @return The explanationSpec. + * @return The fasterDeploymentConfig. */ - public com.google.cloud.vertexai.api.ExplanationSpec getExplanationSpec() { - if (explanationSpecBuilder_ == null) { - return explanationSpec_ == null - ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance() - : explanationSpec_; + public com.google.cloud.vertexai.api.FasterDeploymentConfig getFasterDeploymentConfig() { + if (fasterDeploymentConfigBuilder_ == null) { + return fasterDeploymentConfig_ == null + ? com.google.cloud.vertexai.api.FasterDeploymentConfig.getDefaultInstance() + : fasterDeploymentConfig_; } else { - return explanationSpecBuilder_.getMessage(); + return fasterDeploymentConfigBuilder_.getMessage(); } } /** * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ - public Builder setExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpec value) { - if (explanationSpecBuilder_ == null) { + public Builder setFasterDeploymentConfig( + com.google.cloud.vertexai.api.FasterDeploymentConfig value) { + if (fasterDeploymentConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - explanationSpec_ = value; + fasterDeploymentConfig_ = value; } else { - explanationSpecBuilder_.setMessage(value); + fasterDeploymentConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3037,78 +5447,47 @@ public Builder setExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpec * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ - public Builder setExplanationSpec( - com.google.cloud.vertexai.api.ExplanationSpec.Builder builderForValue) { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = builderForValue.build(); + public Builder setFasterDeploymentConfig( + com.google.cloud.vertexai.api.FasterDeploymentConfig.Builder builderForValue) { + if (fasterDeploymentConfigBuilder_ == null) { + fasterDeploymentConfig_ = builderForValue.build(); } else { - explanationSpecBuilder_.setMessage(builderForValue.build()); + fasterDeploymentConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00004000; onChanged(); return this; } /** * - * - *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. - *- * - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;- */ - public Builder mergeExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpec value) { - if (explanationSpecBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && explanationSpec_ != null - && explanationSpec_ - != com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance()) { - getExplanationSpecBuilder().mergeFrom(value); + * + *+ * Configuration for faster model deployment. + *+ * + *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;+ */ + public Builder mergeFasterDeploymentConfig( + com.google.cloud.vertexai.api.FasterDeploymentConfig value) { + if (fasterDeploymentConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && fasterDeploymentConfig_ != null + && fasterDeploymentConfig_ + != com.google.cloud.vertexai.api.FasterDeploymentConfig.getDefaultInstance()) { + getFasterDeploymentConfigBuilder().mergeFrom(value); } else { - explanationSpec_ = value; + fasterDeploymentConfig_ = value; } } else { - explanationSpecBuilder_.mergeFrom(value); + fasterDeploymentConfigBuilder_.mergeFrom(value); } - if (explanationSpec_ != null) { - bitField0_ |= 0x00000100; + if (fasterDeploymentConfig_ != null) { + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -3117,33 +5496,17 @@ public Builder mergeExplanationSpec(com.google.cloud.vertexai.api.ExplanationSpe * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ - public Builder clearExplanationSpec() { - bitField0_ = (bitField0_ & ~0x00000100); - explanationSpec_ = null; - if (explanationSpecBuilder_ != null) { - explanationSpecBuilder_.dispose(); - explanationSpecBuilder_ = null; + public Builder clearFasterDeploymentConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + fasterDeploymentConfig_ = null; + if (fasterDeploymentConfigBuilder_ != null) { + fasterDeploymentConfigBuilder_.dispose(); + fasterDeploymentConfigBuilder_ = null; } onChanged(); return this; @@ -3152,254 +5515,199 @@ public Builder clearExplanationSpec() { * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ - public com.google.cloud.vertexai.api.ExplanationSpec.Builder getExplanationSpecBuilder() { - bitField0_ |= 0x00000100; + public com.google.cloud.vertexai.api.FasterDeploymentConfig.Builder + getFasterDeploymentConfigBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return getExplanationSpecFieldBuilder().getBuilder(); + return getFasterDeploymentConfigFieldBuilder().getBuilder(); } /** * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ - public com.google.cloud.vertexai.api.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - if (explanationSpecBuilder_ != null) { - return explanationSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.vertexai.api.FasterDeploymentConfigOrBuilder + getFasterDeploymentConfigOrBuilder() { + if (fasterDeploymentConfigBuilder_ != null) { + return fasterDeploymentConfigBuilder_.getMessageOrBuilder(); } else { - return explanationSpec_ == null - ? com.google.cloud.vertexai.api.ExplanationSpec.getDefaultInstance() - : explanationSpec_; + return fasterDeploymentConfig_ == null + ? com.google.cloud.vertexai.api.FasterDeploymentConfig.getDefaultInstance() + : fasterDeploymentConfig_; } } /** * * *- * Explanation configuration for this DeployedModel. - * - * When deploying a Model using - * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], - * this value overrides the value of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. - * All fields of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * are optional in the request. If a field of - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * is not populated, the value of the same field of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is inherited. If the corresponding - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * is not populated, all fields of the - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - * will be used for the explanation configuration. + * Configuration for faster model deployment. ** - *.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;+ *.google.cloud.vertexai.v1.FasterDeploymentConfig faster_deployment_config = 23;*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ExplanationSpec, - com.google.cloud.vertexai.api.ExplanationSpec.Builder, - com.google.cloud.vertexai.api.ExplanationSpecOrBuilder> - getExplanationSpecFieldBuilder() { - if (explanationSpecBuilder_ == null) { - explanationSpecBuilder_ = + com.google.cloud.vertexai.api.FasterDeploymentConfig, + com.google.cloud.vertexai.api.FasterDeploymentConfig.Builder, + com.google.cloud.vertexai.api.FasterDeploymentConfigOrBuilder> + getFasterDeploymentConfigFieldBuilder() { + if (fasterDeploymentConfigBuilder_ == null) { + fasterDeploymentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ExplanationSpec, - com.google.cloud.vertexai.api.ExplanationSpec.Builder, - com.google.cloud.vertexai.api.ExplanationSpecOrBuilder>( - getExplanationSpec(), getParentForChildren(), isClean()); - explanationSpec_ = null; + com.google.cloud.vertexai.api.FasterDeploymentConfig, + com.google.cloud.vertexai.api.FasterDeploymentConfig.Builder, + com.google.cloud.vertexai.api.FasterDeploymentConfigOrBuilder>( + getFasterDeploymentConfig(), getParentForChildren(), isClean()); + fasterDeploymentConfig_ = null; } - return explanationSpecBuilder_; + return fasterDeploymentConfigBuilder_; } - private boolean disableExplanations_; + private com.google.cloud.vertexai.api.DeployedModel.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.DeployedModel.Status, + com.google.cloud.vertexai.api.DeployedModel.Status.Builder, + com.google.cloud.vertexai.api.DeployedModel.StatusOrBuilder> + statusBuilder_; /** * * *- * If true, deploy the model without explainable feature, regardless the - * existence of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * or - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]. + * Output only. Runtime status of the deployed model. ** - *bool disable_explanations = 19;+ *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + ** - * @return The disableExplanations. + * @return Whether the status field is set. */ - @java.lang.Override - public boolean getDisableExplanations() { - return disableExplanations_; + public boolean hasStatus() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *- * If true, deploy the model without explainable feature, regardless the - * existence of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * or - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]. + * Output only. Runtime status of the deployed model. ** - *bool disable_explanations = 19;+ *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + ** - * @param value The disableExplanations to set. - * @return This builder for chaining. + * @return The status. */ - public Builder setDisableExplanations(boolean value) { - - disableExplanations_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.cloud.vertexai.api.DeployedModel.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null + ? com.google.cloud.vertexai.api.DeployedModel.Status.getDefaultInstance() + : status_; + } else { + return statusBuilder_.getMessage(); + } } /** * * *- * If true, deploy the model without explainable feature, regardless the - * existence of - * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] - * or - * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]. + * Output only. Runtime status of the deployed model. ** - *bool disable_explanations = 19;- * - * @return This builder for chaining. + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder clearDisableExplanations() { - bitField0_ = (bitField0_ & ~0x00000200); - disableExplanations_ = false; + public Builder setStatus(com.google.cloud.vertexai.api.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; onChanged(); return this; } - - private java.lang.Object serviceAccount_ = ""; /** * * *- * The service account that the DeployedModel's container runs as. Specify the - * email address of the service account. If this service account is not - * specified, the container runs as a service account that doesn't have access - * to the resource project. - * - * Users deploying the Model must have the `iam.serviceAccounts.actAs` - * permission on this service account. + * Output only. Runtime status of the deployed model. ** - *string service_account = 11;- * - * @return The serviceAccount. + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; + public Builder setStatus( + com.google.cloud.vertexai.api.DeployedModel.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); } else { - return (java.lang.String) ref; + statusBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *- * The service account that the DeployedModel's container runs as. Specify the - * email address of the service account. If this service account is not - * specified, the container runs as a service account that doesn't have access - * to the resource project. - * - * Users deploying the Model must have the `iam.serviceAccounts.actAs` - * permission on this service account. + * Output only. Runtime status of the deployed model. ** - *string service_account = 11;- * - * @return The bytes for serviceAccount. + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; + public Builder mergeStatus(com.google.cloud.vertexai.api.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && status_ != null + && status_ != com.google.cloud.vertexai.api.DeployedModel.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + statusBuilder_.mergeFrom(value); } + if (status_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; } /** * * *- * The service account that the DeployedModel's container runs as. Specify the - * email address of the service account. If this service account is not - * specified, the container runs as a service account that doesn't have access - * to the resource project. - * - * Users deploying the Model must have the `iam.serviceAccounts.actAs` - * permission on this service account. + * Output only. Runtime status of the deployed model. ** - *string service_account = 11;- * - * @param value The serviceAccount to set. - * @return This builder for chaining. + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00008000); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; } - serviceAccount_ = value; - bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3407,273 +5715,305 @@ public Builder setServiceAccount(java.lang.String value) { * * *- * The service account that the DeployedModel's container runs as. Specify the - * email address of the service account. If this service account is not - * specified, the container runs as a service account that doesn't have access - * to the resource project. + * Output only. Runtime status of the deployed model. + ** - * Users deploying the Model must have the `iam.serviceAccounts.actAs` - * permission on this service account. + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + public com.google.cloud.vertexai.api.DeployedModel.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Output only. Runtime status of the deployed model. ** - *string service_account = 11;+ *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *+ */ + public com.google.cloud.vertexai.api.DeployedModel.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null + ? com.google.cloud.vertexai.api.DeployedModel.Status.getDefaultInstance() + : status_; + } + } + /** * - * @return This builder for chaining. + * + *+ * Output only. Runtime status of the deployed model. + *+ * + *+ * .google.cloud.vertexai.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + **/ - public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000400); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.DeployedModel.Status, + com.google.cloud.vertexai.api.DeployedModel.Status.Builder, + com.google.cloud.vertexai.api.DeployedModel.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.DeployedModel.Status, + com.google.cloud.vertexai.api.DeployedModel.Status.Builder, + com.google.cloud.vertexai.api.DeployedModel.StatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.MapFieldsystemLabels_; + + private com.google.protobuf.MapField + internalGetSystemLabels() { + if (systemLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SystemLabelsDefaultEntryHolder.defaultEntry); + } + return systemLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableSystemLabels() { + if (systemLabels_ == null) { + systemLabels_ = + com.google.protobuf.MapField.newMapField(SystemLabelsDefaultEntryHolder.defaultEntry); + } + if (!systemLabels_.isMutable()) { + systemLabels_ = systemLabels_.copy(); + } + bitField0_ |= 0x00010000; onChanged(); - return this; + return systemLabels_; + } + + public int getSystemLabelsCount() { + return internalGetSystemLabels().getMap().size(); } /** * * * - * The service account that the DeployedModel's container runs as. Specify the - * email address of the service account. If this service account is not - * specified, the container runs as a service account that doesn't have access - * to the resource project. - * - * Users deploying the Model must have the `iam.serviceAccounts.actAs` - * permission on this service account. + * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. ** - *string service_account = 11;- * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. + *map<string, string> system_labels = 28;*/ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public boolean containsSystemLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - checkByteStringIsUtf8(value); - serviceAccount_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; + return internalGetSystemLabels().getMap().containsKey(key); + } + /** Use {@link #getSystemLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.MapgetSystemLabels() { + return getSystemLabelsMap(); } - - private boolean disableContainerLogging_; /** * * * - * For custom-trained Models and AutoML Tabular Models, the container of the - * DeployedModel instances will send `stderr` and `stdout` streams to - * Cloud Logging by default. Please note that the logs incur cost, - * which are subject to [Cloud Logging - * pricing](https://cloud.google.com/logging/pricing). - * - * User can disable container logging by setting this flag to true. + * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. ** - *bool disable_container_logging = 15;- * - * @return The disableContainerLogging. + *map<string, string> system_labels = 28;*/ @java.lang.Override - public boolean getDisableContainerLogging() { - return disableContainerLogging_; + public java.util.MapgetSystemLabelsMap() { + return internalGetSystemLabels().getMap(); } /** * * * - * For custom-trained Models and AutoML Tabular Models, the container of the - * DeployedModel instances will send `stderr` and `stdout` streams to - * Cloud Logging by default. Please note that the logs incur cost, - * which are subject to [Cloud Logging - * pricing](https://cloud.google.com/logging/pricing). - * - * User can disable container logging by setting this flag to true. + * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. ** - *bool disable_container_logging = 15;- * - * @param value The disableContainerLogging to set. - * @return This builder for chaining. + *map<string, string> system_labels = 28;*/ - public Builder setDisableContainerLogging(boolean value) { - - disableContainerLogging_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + @java.lang.Override + public /* nullable */ java.lang.String getSystemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Mapmap = internalGetSystemLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * * - * For custom-trained Models and AutoML Tabular Models, the container of the - * DeployedModel instances will send `stderr` and `stdout` streams to - * Cloud Logging by default. Please note that the logs incur cost, - * which are subject to [Cloud Logging - * pricing](https://cloud.google.com/logging/pricing). - * - * User can disable container logging by setting this flag to true. + * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. ** - *bool disable_container_logging = 15;- * - * @return This builder for chaining. + *map<string, string> system_labels = 28;*/ - public Builder clearDisableContainerLogging() { - bitField0_ = (bitField0_ & ~0x00000800); - disableContainerLogging_ = false; - onChanged(); - return this; + @java.lang.Override + public java.lang.String getSystemLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Mapmap = internalGetSystemLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - private boolean enableAccessLogging_; + public Builder clearSystemLabels() { + bitField0_ = (bitField0_ & ~0x00010000); + internalGetMutableSystemLabels().getMutableMap().clear(); + return this; + } /** * * * - * If true, online prediction access logs are sent to Cloud - * Logging. - * These logs are like standard server access logs, containing - * information like timestamp and latency for each prediction request. - * - * Note that logs may incur a cost, especially if your project - * receives prediction requests at a high queries per second rate (QPS). - * Estimate your costs before enabling this option. + * System labels to apply to Model Garden deployments. + * System labels are managed by Google for internal use only. ** - *bool enable_access_logging = 13;- * - * @return The enableAccessLogging. + *map<string, string> system_labels = 28;*/ - @java.lang.Override - public boolean getEnableAccessLogging() { - return enableAccessLogging_; + public Builder removeSystemLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSystemLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.MapgetMutableSystemLabels() { + bitField0_ |= 0x00010000; + return internalGetMutableSystemLabels().getMutableMap(); } /** * * *