diff --git a/generation_config.yaml b/generation_config.yaml index 58f9c3b98ad1..793313e16273 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.37.0 protobuf_version: '25.2' -googleapis_commitish: 97e3b44f2f08bd0ffff128872519e619750c7892 +googleapis_commitish: e960a82d36e3ddaeb62f549dbd4c300e11e240dc owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 template_excludes: diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java index 5d4b1065fd2e..c8d59b47bb02 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java @@ -256,6 +256,26 @@ * * *
BatchDeletePipelineJobs
Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchDeletePipelineJobsAsync(BatchDeletePipelineJobsRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *batchDeletePipelineJobsAsync(LocationName parent, List<String> names) + *
batchDeletePipelineJobsAsync(String parent, List<String> names) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchDeletePipelineJobsOperationCallable() + *
batchDeletePipelineJobsCallable() + *
CancelPipelineJob
Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to `CANCELLED`.
BatchCancelPipelineJobs
Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchCancelPipelineJobsAsync(BatchCancelPipelineJobsRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *batchCancelPipelineJobsAsync(LocationName parent, List<String> names) + *
batchCancelPipelineJobsAsync(String parent, List<String> names) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchCancelPipelineJobsOperationCallable() + *
batchCancelPipelineJobsCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * List+ * + * @param parent Required. The name of the PipelineJobs' parent resource. Format: + * `projects/{project}/locations/{location}` + * @param names Required. The names of the PipelineJobs to delete. A maximum of 32 PipelineJobs + * can be deleted in a batch. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuturenames = new ArrayList<>(); + * BatchDeletePipelineJobsResponse response = + * pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * List+ * + * @param parent Required. The name of the PipelineJobs' parent resource. Format: + * `projects/{project}/locations/{location}` + * @param names Required. The names of the PipelineJobs to delete. A maximum of 32 PipelineJobs + * can be deleted in a batch. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuturenames = new ArrayList<>(); + * BatchDeletePipelineJobsResponse response = + * pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchDeletePipelineJobsRequest request = + * BatchDeletePipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ * + * @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 OperationFuture()) + * .build(); + * BatchDeletePipelineJobsResponse response = + * pipelineServiceClient.batchDeletePipelineJobsAsync(request).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchDeletePipelineJobsRequest request = + * BatchDeletePipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ */ + public final OperationCallable< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationCallable() { + return stub.batchDeletePipelineJobsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are + * deleted. If it succeeds, all of the PipelineJobs are deleted. + * + *()) + * .build(); + * OperationFuture future = + * pipelineServiceClient.batchDeletePipelineJobsOperationCallable().futureCall(request); + * // Do something. + * BatchDeletePipelineJobsResponse response = future.get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchDeletePipelineJobsRequest request = + * BatchDeletePipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ */ + public final UnaryCallable()) + * .build(); + * ApiFuture future = + * pipelineServiceClient.batchDeletePipelineJobsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * List+ * + * @param parent Required. The name of the PipelineJobs' parent resource. Format: + * `projects/{project}/locations/{location}` + * @param names Required. The names of the PipelineJobs to cancel. A maximum of 32 PipelineJobs + * can be cancelled in a batch. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsAsync(LocationName parent, Listnames = new ArrayList<>(); + * BatchCancelPipelineJobsResponse response = + * pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * List+ * + * @param parent Required. The name of the PipelineJobs' parent resource. Format: + * `projects/{project}/locations/{location}` + * @param names Required. The names of the PipelineJobs to cancel. A maximum of 32 PipelineJobs + * can be cancelled in a batch. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsAsync(String parent, Listnames = new ArrayList<>(); + * BatchCancelPipelineJobsResponse response = + * pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchCancelPipelineJobsRequest request = + * BatchCancelPipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ * + * @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 OperationFuture< + BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsAsync(BatchCancelPipelineJobsRequest request) { + return batchCancelPipelineJobsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal + * states, and skip the jobs that are already terminated. If the operation failed, none of the + * pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs + * periodically to check the cancellation status. This operation will return an LRO. + * + *()) + * .build(); + * BatchCancelPipelineJobsResponse response = + * pipelineServiceClient.batchCancelPipelineJobsAsync(request).get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchCancelPipelineJobsRequest request = + * BatchCancelPipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ */ + public final OperationCallable< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationCallable() { + return stub.batchCancelPipelineJobsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal + * states, and skip the jobs that are already terminated. If the operation failed, none of the + * pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs + * periodically to check the cancellation status. This operation will return an LRO. + * + *()) + * .build(); + * OperationFuture + * future = + * pipelineServiceClient.batchCancelPipelineJobsOperationCallable().futureCall(request); + * // Do something. + * BatchCancelPipelineJobsResponse response = future.get(); + * } + * }
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 (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) { + * BatchCancelPipelineJobsRequest request = + * BatchCancelPipelineJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllNames(new ArrayList+ */ + public final UnaryCallable()) + * .build(); + * ApiFuture future = + * pipelineServiceClient.batchCancelPipelineJobsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
======================= ModelServiceClient ======================= + *
======================= ModelGardenServiceClient ======================= * - *
Service Description: A service for managing Vertex AI's machine learning Models. + *
Service Description: The interface of Model Garden Service. * - *
Sample for ModelServiceClient: + *
Sample for ModelGardenServiceClient: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -330,17 +330,17 @@ * // - 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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { - * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); - * Model response = modelServiceClient.getModel(name); + * try (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { + * PublisherModelName name = PublisherModelName.of("[PUBLISHER]", "[MODEL]"); + * PublisherModel response = modelGardenServiceClient.getPublisherModel(name); * } * }* - *
======================= ModelGardenServiceClient ======================= + *
======================= ModelServiceClient ======================= * - *
Service Description: The interface of Model Garden Service. + *
Service Description: A service for managing Vertex AI's machine learning Models. * - *
Sample for ModelGardenServiceClient: + *
Sample for ModelServiceClient: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -348,9 +348,9 @@ * // - 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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { - * PublisherModelName name = PublisherModelName.of("[PUBLISHER]", "[MODEL]"); - * PublisherModel response = modelGardenServiceClient.getPublisherModel(name); + * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + * ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + * Model response = modelServiceClient.getModel(name); * } * }* diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java index 98d7a17a680a..2c973a5f48a5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java @@ -28,6 +28,11 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata; +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse; import com.google.cloud.aiplatform.v1.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; import com.google.cloud.aiplatform.v1.CreatePipelineJobRequest; @@ -164,6 +169,17 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor
======================= FeatureRegistryServiceClient ======================= + *
======================= FeatureOnlineStoreServiceClient ======================= * - *
Service Description: The service that handles CRUD and List for resources for FeatureRegistry. + *
Service Description: A service for fetching feature values from the online store. * - *
Sample for FeatureRegistryServiceClient: + *
Sample for FeatureOnlineStoreServiceClient: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -111,18 +111,21 @@ * // - 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 (FeatureRegistryServiceClient featureRegistryServiceClient = - * FeatureRegistryServiceClient.create()) { - * FeatureGroupName name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"); - * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(name); + * try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = + * FeatureOnlineStoreServiceClient.create()) { + * FeatureViewName featureView = + * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"); + * FeatureViewDataKey dataKey = FeatureViewDataKey.newBuilder().build(); + * FetchFeatureValuesResponse response = + * featureOnlineStoreServiceClient.fetchFeatureValues(featureView, dataKey); * } * }* - *
======================= FeatureOnlineStoreServiceClient ======================= + *
======================= FeatureRegistryServiceClient ======================= * - *
Service Description: A service for fetching feature values from the online store. + *
Service Description: The service that handles CRUD and List for resources for FeatureRegistry. * - *
Sample for FeatureOnlineStoreServiceClient: + *
Sample for FeatureRegistryServiceClient: * *
{@code * // This snippet has been automatically generated and should be regarded as a code template only. @@ -130,13 +133,10 @@ * // - 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 (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient = - * FeatureOnlineStoreServiceClient.create()) { - * FeatureViewName featureView = - * FeatureViewName.of("[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]"); - * FeatureViewDataKey dataKey = FeatureViewDataKey.newBuilder().build(); - * FetchFeatureValuesResponse response = - * featureOnlineStoreServiceClient.fetchFeatureValues(featureView, dataKey); + * try (FeatureRegistryServiceClient featureRegistryServiceClient = + * FeatureRegistryServiceClient.create()) { + * FeatureGroupName name = FeatureGroupName.of("[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]"); + * FeatureGroup response = featureRegistryServiceClient.getFeatureGroup(name); * } * }* diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index fb4c935773c4..cf93e7fbb99c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -683,6 +683,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata", "queryAllDeclaredConstructors": true, @@ -827,6 +881,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsRequest", "queryAllDeclaredConstructors": true, @@ -5354,6 +5444,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.FeatureViewSync$SyncSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.FeatureViewSync$SyncSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Featurestore", "queryAllDeclaredConstructors": true, @@ -5930,6 +6038,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GenieSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GenieSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest", "queryAllDeclaredConstructors": true, @@ -6650,6 +6776,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleSearchRetrieval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleSearchRetrieval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingAttribution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingAttribution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingAttribution$Web", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingAttribution$Web$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GroundingMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.HarmCategory", "queryAllDeclaredConstructors": true, @@ -9080,6 +9278,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Model$BaseModelSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Model$BaseModelSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Model$Builder", "queryAllDeclaredConstructors": true, @@ -9467,6 +9683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ModelGardenSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ModelGardenSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig", "queryAllDeclaredConstructors": true, @@ -11726,6 +11960,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Retrieval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Retrieval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.SafetyRating", "queryAllDeclaredConstructors": true, @@ -11753,6 +12005,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SafetyRating$HarmSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.SafetySetting", "queryAllDeclaredConstructors": true, @@ -12194,6 +12455,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Segment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Segment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.SmoothGradConfig", "queryAllDeclaredConstructors": true, @@ -14210,6 +14489,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.VertexAISearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexAISearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.VideoMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index fdccfdd6af01..9c2b091204fb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -5615,6 +5615,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FeatureViewSync$SyncSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FeatureViewSync$SyncSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Featurestore", "queryAllDeclaredConstructors": true, @@ -6200,6 +6218,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenieSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenieSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest", "queryAllDeclaredConstructors": true, @@ -9512,6 +9548,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Model$BaseModelSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Model$BaseModelSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Model$Builder", "queryAllDeclaredConstructors": true, @@ -9899,6 +9953,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModelGardenSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModelGardenSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig", "queryAllDeclaredConstructors": true, @@ -12374,6 +12446,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SafetyRating$HarmSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.SafetySetting", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java index 0ce87872c43f..60273fc2ecb2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java @@ -762,6 +762,8 @@ public void createDatasetVersionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -818,6 +820,8 @@ public void createDatasetVersionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -962,6 +966,8 @@ public void getDatasetVersionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); mockDatasetService.addResponse(expectedResponse); @@ -1008,6 +1014,8 @@ public void getDatasetVersionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); mockDatasetService.addResponse(expectedResponse); @@ -1140,6 +1148,8 @@ public void restoreDatasetVersionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1195,6 +1205,8 @@ public void restoreDatasetVersionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .setDisplayName("displayName1714148973") + .setMetadata(Value.newBuilder().setBoolValue(true).build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java index b081814b926f..30641a8a0bd4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java @@ -1108,6 +1108,7 @@ public void getFeatureViewSyncTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setRunTime(Interval.newBuilder().build()) .setFinalStatus(Status.newBuilder().build()) + .setSyncSummary(FeatureViewSync.SyncSummary.newBuilder().build()) .build(); mockFeatureOnlineStoreAdminService.addResponse(expectedResponse); @@ -1156,6 +1157,7 @@ public void getFeatureViewSyncTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setRunTime(Interval.newBuilder().build()) .setFinalStatus(Status.newBuilder().build()) + .setSyncSummary(FeatureViewSync.SyncSummary.newBuilder().build()) .build(); mockFeatureOnlineStoreAdminService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java index 395f83767a31..13cfcc7d80ba 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java @@ -250,6 +250,27 @@ public void deletePipelineJob( } } + @Override + public void batchDeletePipelineJobs( + BatchDeletePipelineJobsRequest request, StreamObserver
+ * Batch deletes PipelineJobs + * The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + * If it succeeds, all of the PipelineJobs are deleted. + *+ */ + default void batchDeletePipelineJobs( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request, + io.grpc.stub.StreamObserver
+ * Batch cancel PipelineJobs. + * Firstly the server will check if all the jobs are in non-terminal states, + * and skip the jobs that are already terminated. + * If the operation failed, none of the pipeline jobs are cancelled. + * The server will poll the states of all the pipeline jobs periodically + * to check the cancellation status. + * This operation will return an LRO. + *+ */ + default void batchCancelPipelineJobs( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request, + io.grpc.stub.StreamObserver
+ * Batch deletes PipelineJobs + * The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + * If it succeeds, all of the PipelineJobs are deleted. + *+ */ + public void batchDeletePipelineJobs( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request, + io.grpc.stub.StreamObserver
+ * Batch cancel PipelineJobs. + * Firstly the server will check if all the jobs are in non-terminal states, + * and skip the jobs that are already terminated. + * If the operation failed, none of the pipeline jobs are cancelled. + * The server will poll the states of all the pipeline jobs periodically + * to check the cancellation status. + * This operation will return an LRO. + *+ */ + public void batchCancelPipelineJobs( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request, + io.grpc.stub.StreamObserver
+ * Batch deletes PipelineJobs + * The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + * If it succeeds, all of the PipelineJobs are deleted. + *+ */ + public com.google.longrunning.Operation batchDeletePipelineJobs( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeletePipelineJobsMethod(), getCallOptions(), request); + } + /** * * @@ -1133,6 +1324,25 @@ public com.google.protobuf.Empty cancelPipelineJob( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelPipelineJobMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Batch cancel PipelineJobs. + * Firstly the server will check if all the jobs are in non-terminal states, + * and skip the jobs that are already terminated. + * If the operation failed, none of the pipeline jobs are cancelled. + * The server will poll the states of all the pipeline jobs periodically + * to check the cancellation status. + * This operation will return an LRO. + *+ */ + public com.google.longrunning.Operation batchCancelPipelineJobs( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCancelPipelineJobsMethod(), getCallOptions(), request); + } } /** @@ -1296,6 +1506,22 @@ protected PipelineServiceFutureStub build( getChannel().newCall(getDeletePipelineJobMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Batch deletes PipelineJobs + * The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + * If it succeeds, all of the PipelineJobs are deleted. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Batch cancel PipelineJobs. + * Firstly the server will check if all the jobs are in non-terminal states, + * and skip the jobs that are already terminated. + * If the operation failed, none of the pipeline jobs are cancelled. + * The server will poll the states of all the pipeline jobs periodically + * to check the cancellation status. + * This operation will return an LRO. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
NVIDIA_L4 = 11;
*/
NVIDIA_L4(11),
+ /**
+ *
+ *
+ * + * Nvidia H100 80Gb GPU. + *+ * + *
NVIDIA_H100_80GB = 13;
+ */
+ NVIDIA_H100_80GB(13),
/**
*
*
@@ -242,6 +252,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
* NVIDIA_L4 = 11;
*/
public static final int NVIDIA_L4_VALUE = 11;
+ /**
+ *
+ *
+ * + * Nvidia H100 80Gb GPU. + *+ * + *
NVIDIA_H100_80GB = 13;
+ */
+ public static final int NVIDIA_H100_80GB_VALUE = 13;
/**
*
*
@@ -315,6 +335,8 @@ public static AcceleratorType forNumber(int value) {
return NVIDIA_A100_80GB;
case 11:
return NVIDIA_L4;
+ case 13:
+ return NVIDIA_H100_80GB;
case 6:
return TPU_V2;
case 7:
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
index ae0405eeb0b4..03be20a0d431 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
@@ -38,19 +38,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n1google/cloud/aiplatform/v1/accelerator"
+ "_type.proto\022\032google.cloud.aiplatform.v1*"
- + "\205\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ + "\233\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\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\n\n\006TPU_V2\020\006\022\n\n\006T"
- + "PU_V3\020\007\022\016\n\nTPU_V4_POD\020\nB\322\001\n\036com.google.c"
- + "loud.aiplatform.v1B\024AcceleratorTypeProto"
- + "P\001Z>cloud.google.com/go/aiplatform/apiv1"
- + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou"
- + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor"
- + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pr"
- + "oto3"
+ + "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\nB\322\001\n\036com.google.cloud.aiplatform.v1"
+ + "B\024AcceleratorTypeProtoP\001Z>cloud.google.c"
+ + "om/go/aiplatform/apiv1/aiplatformpb;aipl"
+ + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032"
+ + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo"
+ + "ud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadata.java
new file mode 100644
index 000000000000..7bb1983bbb31
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadata.java
@@ -0,0 +1,749 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/pipeline_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Runtime operation information for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata} + */ +public final class BatchCancelPipelineJobsOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata) + BatchCancelPipelineJobsOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCancelPipelineJobsOperationMetadata.newBuilder() to construct. + private BatchCancelPipelineJobsOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchCancelPipelineJobsOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCancelPipelineJobsOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata.class, + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+ * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+
+ 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, getGenericMetadata());
+ }
+ 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, getGenericMetadata());
+ }
+ 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata other =
+ (com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata) obj;
+
+ if (hasGenericMetadata() != other.hasGenericMetadata()) return false;
+ if (hasGenericMetadata()) {
+ if (!getGenericMetadata().equals(other.getGenericMetadata())) 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 (hasGenericMetadata()) {
+ hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getGenericMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata
+ 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata 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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata 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 operation information for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() {
+ if (genericMetadataBuilder_ == null) {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ } else {
+ return genericMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ genericMetadata_ = value;
+ } else {
+ genericMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadata_ = builderForValue.build();
+ } else {
+ genericMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder mergeGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && genericMetadata_ != null
+ && genericMetadata_
+ != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) {
+ getGenericMetadataBuilder().mergeFrom(value);
+ } else {
+ genericMetadata_ = value;
+ }
+ } else {
+ genericMetadataBuilder_.mergeFrom(value);
+ }
+ if (genericMetadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder clearGenericMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ genericMetadata_ = null;
+ if (genericMetadataBuilder_ != null) {
+ genericMetadataBuilder_.dispose();
+ genericMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder
+ getGenericMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getGenericMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ if (genericMetadataBuilder_ != null) {
+ return genericMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>
+ getGenericMetadataFieldBuilder() {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>(
+ getGenericMetadata(), getParentForChildren(), isClean());
+ genericMetadata_ = null;
+ }
+ return genericMetadataBuilder_;
+ }
+
+ @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.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata)
+ private static final com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ boolean hasGenericMetadata();
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata();
+ /**
+ *
+ *
+ * + * The common part of the operation metadata. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequest.java
new file mode 100644
index 000000000000..d9f90f49dfc1
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequest.java
@@ -0,0 +1,996 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/pipeline_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Request message for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest} + */ +public final class BatchCancelPipelineJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) + BatchCancelPipelineJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCancelPipelineJobsRequest.newBuilder() to construct. + private BatchCancelPipelineJobsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchCancelPipelineJobsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCancelPipelineJobsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.class, + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAMES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList names_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ public com.google.protobuf.ProtocolStringList getNamesList() {
+ return names_;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ public int getNamesCount() {
+ return names_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ public java.lang.String getNames(int index) {
+ return names_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ public com.google.protobuf.ByteString getNamesBytes(int index) {
+ return names_.getByteString(index);
+ }
+
+ 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(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < names_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i));
+ }
+ 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(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < names_.size(); i++) {
+ dataSize += computeStringSizeNoTag(names_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNamesList().size();
+ }
+ 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.aiplatform.v1.BatchCancelPipelineJobsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest other =
+ (com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getNamesList().equals(other.getNamesList())) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getNamesCount() > 0) {
+ hash = (37 * hash) + NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getNamesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest 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.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest 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.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest 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.aiplatform.v1.BatchCancelPipelineJobsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest 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.aiplatform.v1.BatchCancelPipelineJobsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest 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.aiplatform.v1.BatchCancelPipelineJobsRequest 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;
+ }
+ /**
+ *
+ *
+ * + * Request message for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList names_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureNamesIsMutable() {
+ if (!names_.isModifiable()) {
+ names_ = new com.google.protobuf.LazyStringArrayList(names_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ public com.google.protobuf.ProtocolStringList getNamesList() {
+ names_.makeImmutable();
+ return names_;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ public int getNamesCount() {
+ return names_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ public java.lang.String getNames(int index) {
+ return names_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ public com.google.protobuf.ByteString getNamesBytes(int index) {
+ return names_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The names to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamesIsMutable();
+ names_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamesIsMutable();
+ names_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNames(java.lang.Iterable+ * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNames() {
+ names_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNamesIsMutable();
+ names_.add(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.aiplatform.v1.BatchCancelPipelineJobsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest)
+ private static final com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ java.util.List+ * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ int getNamesCount();
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ java.lang.String getNames(int index);
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to cancel. + * A maximum of 32 PipelineJobs can be cancelled in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ com.google.protobuf.ByteString getNamesBytes(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponse.java
new file mode 100644
index 000000000000..1a34431651dd
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponse.java
@@ -0,0 +1,948 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/pipeline_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Response message for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse} + */ +public final class BatchCancelPipelineJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) + BatchCancelPipelineJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCancelPipelineJobsResponse.newBuilder() to construct. + private BatchCancelPipelineJobsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchCancelPipelineJobsResponse() { + pipelineJobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCancelPipelineJobsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse.class, + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse.Builder.class); + } + + public static final int PIPELINE_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList() {
+ return pipelineJobs_;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public int getPipelineJobsCount() {
+ return pipelineJobs_.size();
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) {
+ return pipelineJobs_.get(index);
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) {
+ return pipelineJobs_.get(index);
+ }
+
+ 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 {
+ for (int i = 0; i < pipelineJobs_.size(); i++) {
+ output.writeMessage(1, pipelineJobs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < pipelineJobs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pipelineJobs_.get(i));
+ }
+ 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.aiplatform.v1.BatchCancelPipelineJobsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse other =
+ (com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) obj;
+
+ if (!getPipelineJobsList().equals(other.getPipelineJobsList())) 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 (getPipelineJobsCount() > 0) {
+ hash = (37 * hash) + PIPELINE_JOBS_FIELD_NUMBER;
+ hash = (53 * hash) + getPipelineJobsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse 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.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse 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.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse 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.aiplatform.v1.BatchCancelPipelineJobsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse 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.aiplatform.v1.BatchCancelPipelineJobsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse 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.aiplatform.v1.BatchCancelPipelineJobsResponse 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;
+ }
+ /**
+ *
+ *
+ * + * Response message for + * [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public int getPipelineJobsCount() {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.size();
+ } else {
+ return pipelineJobsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.get(index);
+ } else {
+ return pipelineJobsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder setPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.set(index, value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder setPipelineJobs(
+ int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(index, value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(
+ com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(
+ int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addAllPipelineJobs(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.PipelineJob> values) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pipelineJobs_);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder clearPipelineJobs() {
+ if (pipelineJobsBuilder_ == null) {
+ pipelineJobs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder removePipelineJobs(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.remove(index);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder getPipelineJobsBuilder(int index) {
+ return getPipelineJobsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.get(index);
+ } else {
+ return pipelineJobsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList() {
+ if (pipelineJobsBuilder_ != null) {
+ return pipelineJobsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(pipelineJobs_);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder() {
+ return getPipelineJobsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder(int index) {
+ return getPipelineJobsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ java.util.List+ * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index);
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ int getPipelineJobsCount();
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList();
+ /**
+ *
+ *
+ * + * PipelineJobs cancelled. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequest.java
new file mode 100644
index 000000000000..f53ad5635493
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequest.java
@@ -0,0 +1,996 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/pipeline_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Request message for + * [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest} + */ +public final class BatchDeletePipelineJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) + BatchDeletePipelineJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeletePipelineJobsRequest.newBuilder() to construct. + private BatchDeletePipelineJobsRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchDeletePipelineJobsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeletePipelineJobsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.class, + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAMES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList names_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ public com.google.protobuf.ProtocolStringList getNamesList() {
+ return names_;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ public int getNamesCount() {
+ return names_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ public java.lang.String getNames(int index) {
+ return names_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ public com.google.protobuf.ByteString getNamesBytes(int index) {
+ return names_.getByteString(index);
+ }
+
+ 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(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ for (int i = 0; i < names_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i));
+ }
+ 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(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < names_.size(); i++) {
+ dataSize += computeStringSizeNoTag(names_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNamesList().size();
+ }
+ 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.aiplatform.v1.BatchDeletePipelineJobsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest other =
+ (com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getNamesList().equals(other.getNamesList())) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (getNamesCount() > 0) {
+ hash = (37 * hash) + NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getNamesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest 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.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest 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.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest 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.aiplatform.v1.BatchDeletePipelineJobsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest 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.aiplatform.v1.BatchDeletePipelineJobsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest 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.aiplatform.v1.BatchDeletePipelineJobsRequest 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;
+ }
+ /**
+ *
+ *
+ * + * Request message for + * [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList names_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureNamesIsMutable() {
+ if (!names_.isModifiable()) {
+ names_ = new com.google.protobuf.LazyStringArrayList(names_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ public com.google.protobuf.ProtocolStringList getNamesList() {
+ names_.makeImmutable();
+ return names_;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ public int getNamesCount() {
+ return names_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ public java.lang.String getNames(int index) {
+ return names_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ public com.google.protobuf.ByteString getNamesBytes(int index) {
+ return names_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The names to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamesIsMutable();
+ names_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNamesIsMutable();
+ names_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNames(java.lang.Iterable+ * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNames() {
+ names_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the names to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureNamesIsMutable();
+ names_.add(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.aiplatform.v1.BatchDeletePipelineJobsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest)
+ private static final com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the names.
+ */
+ java.util.List+ * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of names.
+ */
+ int getNamesCount();
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The names at the given index.
+ */
+ java.lang.String getNames(int index);
+ /**
+ *
+ *
+ * + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + *+ * + *
+ * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the names at the given index.
+ */
+ com.google.protobuf.ByteString getNamesBytes(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponse.java
new file mode 100644
index 000000000000..8bc74edc43b3
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponse.java
@@ -0,0 +1,948 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/pipeline_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Response message for + * [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse} + */ +public final class BatchDeletePipelineJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) + BatchDeletePipelineJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeletePipelineJobsResponse.newBuilder() to construct. + private BatchDeletePipelineJobsResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchDeletePipelineJobsResponse() { + pipelineJobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeletePipelineJobsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse.class, + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse.Builder.class); + } + + public static final int PIPELINE_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList() {
+ return pipelineJobs_;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public int getPipelineJobsCount() {
+ return pipelineJobs_.size();
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) {
+ return pipelineJobs_.get(index);
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) {
+ return pipelineJobs_.get(index);
+ }
+
+ 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 {
+ for (int i = 0; i < pipelineJobs_.size(); i++) {
+ output.writeMessage(1, pipelineJobs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < pipelineJobs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pipelineJobs_.get(i));
+ }
+ 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.aiplatform.v1.BatchDeletePipelineJobsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse other =
+ (com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) obj;
+
+ if (!getPipelineJobsList().equals(other.getPipelineJobsList())) 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 (getPipelineJobsCount() > 0) {
+ hash = (37 * hash) + PIPELINE_JOBS_FIELD_NUMBER;
+ hash = (53 * hash) + getPipelineJobsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse 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.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse 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.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse 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.aiplatform.v1.BatchDeletePipelineJobsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse 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.aiplatform.v1.BatchDeletePipelineJobsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse 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.aiplatform.v1.BatchDeletePipelineJobsResponse 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;
+ }
+ /**
+ *
+ *
+ * + * Response message for + * [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public int getPipelineJobsCount() {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.size();
+ } else {
+ return pipelineJobsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.get(index);
+ } else {
+ return pipelineJobsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder setPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.set(index, value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder setPipelineJobs(
+ int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) {
+ if (pipelineJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(index, value);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(
+ com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addPipelineJobs(
+ int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder addAllPipelineJobs(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.PipelineJob> values) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pipelineJobs_);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder clearPipelineJobs() {
+ if (pipelineJobsBuilder_ == null) {
+ pipelineJobs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public Builder removePipelineJobs(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ ensurePipelineJobsIsMutable();
+ pipelineJobs_.remove(index);
+ onChanged();
+ } else {
+ pipelineJobsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder getPipelineJobsBuilder(int index) {
+ return getPipelineJobsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) {
+ if (pipelineJobsBuilder_ == null) {
+ return pipelineJobs_.get(index);
+ } else {
+ return pipelineJobsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList() {
+ if (pipelineJobsBuilder_ != null) {
+ return pipelineJobsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(pipelineJobs_);
+ }
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder() {
+ return getPipelineJobsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder(int index) {
+ return getPipelineJobsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ public java.util.List+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ java.util.List+ * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index);
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ int getPipelineJobsCount();
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>
+ getPipelineJobsOrBuilderList();
+ /**
+ *
+ *
+ * + * PipelineJobs deleted. + *+ * + *
repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1;
+ */
+ com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
index 90ac679eef5a..76898cf256e6 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java
@@ -139,6 +139,39 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum {
* OTHER = 5;
*/
OTHER(5),
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for the + * terms which are included from the terminology blocklist. + *+ * + *
BLOCKLIST = 6;
+ */
+ BLOCKLIST(6),
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for + * the prohibited contents. + *+ * + *
PROHIBITED_CONTENT = 7;
+ */
+ PROHIBITED_CONTENT(7),
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for + * Sensitive Personally Identifiable Information (SPII) contents. + *+ * + *
SPII = 8;
+ */
+ SPII(8),
UNRECOGNIZED(-1),
;
@@ -205,6 +238,39 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum {
* OTHER = 5;
*/
public static final int OTHER_VALUE = 5;
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for the + * terms which are included from the terminology blocklist. + *+ * + *
BLOCKLIST = 6;
+ */
+ public static final int BLOCKLIST_VALUE = 6;
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for + * the prohibited contents. + *+ * + *
PROHIBITED_CONTENT = 7;
+ */
+ public static final int PROHIBITED_CONTENT_VALUE = 7;
+ /**
+ *
+ *
+ * + * The token generation was stopped as the response was flagged for + * Sensitive Personally Identifiable Information (SPII) contents. + *+ * + *
SPII = 8;
+ */
+ public static final int SPII_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -242,6 +308,12 @@ public static FinishReason forNumber(int value) {
return RECITATION;
case 5:
return OTHER;
+ case 6:
+ return BLOCKLIST;
+ case 7:
+ return PROHIBITED_CONTENT;
+ case 8:
+ return SPII;
default:
return null;
}
@@ -629,6 +701,62 @@ public com.google.cloud.aiplatform.v1.CitationMetadataOrBuilder getCitationMetad
: citationMetadata_;
}
+ public static final int GROUNDING_METADATA_FIELD_NUMBER = 7;
+ private com.google.cloud.aiplatform.v1.GroundingMetadata groundingMetadata_;
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the groundingMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGroundingMetadata() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The groundingMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata getGroundingMetadata() {
+ return groundingMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()
+ : groundingMetadata_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder getGroundingMetadataOrBuilder() {
+ return groundingMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()
+ : groundingMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -663,6 +791,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getCitationMetadata());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(7, getGroundingMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -692,6 +823,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCitationMetadata());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGroundingMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -722,6 +856,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasCitationMetadata()) {
if (!getCitationMetadata().equals(other.getCitationMetadata())) return false;
}
+ if (hasGroundingMetadata() != other.hasGroundingMetadata()) return false;
+ if (hasGroundingMetadata()) {
+ if (!getGroundingMetadata().equals(other.getGroundingMetadata())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -753,6 +891,10 @@ public int hashCode() {
hash = (37 * hash) + CITATION_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getCitationMetadata().hashCode();
}
+ if (hasGroundingMetadata()) {
+ hash = (37 * hash) + GROUNDING_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getGroundingMetadata().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -896,6 +1038,7 @@ private void maybeForceBuilderInitialization() {
getContentFieldBuilder();
getSafetyRatingsFieldBuilder();
getCitationMetadataFieldBuilder();
+ getGroundingMetadataFieldBuilder();
}
}
@@ -923,6 +1066,11 @@ public Builder clear() {
citationMetadataBuilder_.dispose();
citationMetadataBuilder_ = null;
}
+ groundingMetadata_ = null;
+ if (groundingMetadataBuilder_ != null) {
+ groundingMetadataBuilder_.dispose();
+ groundingMetadataBuilder_ = null;
+ }
return this;
}
@@ -992,6 +1140,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Candidate result) {
citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.groundingMetadata_ =
+ groundingMetadataBuilder_ == null
+ ? groundingMetadata_
+ : groundingMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1084,6 +1239,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Candidate other) {
if (other.hasCitationMetadata()) {
mergeCitationMetadata(other.getCitationMetadata());
}
+ if (other.hasGroundingMetadata()) {
+ mergeGroundingMetadata(other.getGroundingMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1154,6 +1312,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000020;
break;
} // case 50
+ case 58:
+ {
+ input.readMessage(
+ getGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2294,6 +2459,212 @@ public com.google.cloud.aiplatform.v1.CitationMetadataOrBuilder getCitationMetad
return citationMetadataBuilder_;
}
+ private com.google.cloud.aiplatform.v1.GroundingMetadata groundingMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingMetadata,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder>
+ groundingMetadataBuilder_;
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the groundingMetadata field is set.
+ */
+ public boolean hasGroundingMetadata() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The groundingMetadata.
+ */
+ public com.google.cloud.aiplatform.v1.GroundingMetadata getGroundingMetadata() {
+ if (groundingMetadataBuilder_ == null) {
+ return groundingMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()
+ : groundingMetadata_;
+ } else {
+ return groundingMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMetadata value) {
+ if (groundingMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ groundingMetadata_ = value;
+ } else {
+ groundingMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setGroundingMetadata(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder builderForValue) {
+ if (groundingMetadataBuilder_ == null) {
+ groundingMetadata_ = builderForValue.build();
+ } else {
+ groundingMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeGroundingMetadata(com.google.cloud.aiplatform.v1.GroundingMetadata value) {
+ if (groundingMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && groundingMetadata_ != null
+ && groundingMetadata_
+ != com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()) {
+ getGroundingMetadataBuilder().mergeFrom(value);
+ } else {
+ groundingMetadata_ = value;
+ }
+ } else {
+ groundingMetadataBuilder_.mergeFrom(value);
+ }
+ if (groundingMetadata_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearGroundingMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ groundingMetadata_ = null;
+ if (groundingMetadataBuilder_ != null) {
+ groundingMetadataBuilder_.dispose();
+ groundingMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.Builder getGroundingMetadataBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getGroundingMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder
+ getGroundingMetadataOrBuilder() {
+ if (groundingMetadataBuilder_ != null) {
+ return groundingMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return groundingMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance()
+ : groundingMetadata_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingMetadata,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder>
+ getGroundingMetadataFieldBuilder() {
+ if (groundingMetadataBuilder_ == null) {
+ groundingMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingMetadata,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder>(
+ getGroundingMetadata(), getParentForChildren(), isClean());
+ groundingMetadata_ = null;
+ }
+ return groundingMetadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
index 06f16f642ae1..c3854a252d60 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CandidateOrBuilder.java
@@ -261,4 +261,45 @@ public interface CandidateOrBuilder
*
*/
com.google.cloud.aiplatform.v1.CitationMetadataOrBuilder getCitationMetadataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the groundingMetadata field is set.
+ */
+ boolean hasGroundingMetadata();
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The groundingMetadata.
+ */
+ com.google.cloud.aiplatform.v1.GroundingMetadata getGroundingMetadata();
+ /**
+ *
+ *
+ * + * Output only. Metadata specifies sources used to ground generated content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder getGroundingMetadataOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index df75fe7cb00d..91066f8a080e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -72,6 +72,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Candidate_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Candidate_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -118,43 +134,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ldB\003\340A\002\"\224\001\n\022HarmBlockThreshold\022$\n HARM_B"
+ "LOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LO"
+ "W_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020"
- + "\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\"\235"
- + "\002\n\014SafetyRating\022?\n\010category\030\001 \001(\0162(.goog"
+ + "\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\"\277"
+ + "\004\n\014SafetyRating\022?\n\010category\030\001 \001(\0162(.goog"
+ "le.cloud.aiplatform.v1.HarmCategoryB\003\340A\003"
+ "\022R\n\013probability\030\002 \001(\01628.google.cloud.aip"
+ "latform.v1.SafetyRating.HarmProbabilityB"
- + "\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\"P\n\020CitationMetadata\022<\n\tcitations\030"
- + "\001 \003(\0132$.google.cloud.aiplatform.v1.Citat"
- + "ionB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start_index\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\"\344\003\n\tCandidate\022\022\n\005i"
- + "ndex\030\001 \001(\005B\003\340A\003\0229\n\007content\030\002 \001(\0132#.googl"
- + "e.cloud.aiplatform.v1.ContentB\003\340A\003\022N\n\rfi"
- + "nish_reason\030\003 \001(\01622.google.cloud.aiplatf"
- + "orm.v1.Candidate.FinishReasonB\003\340A\003\022E\n\016sa"
- + "fety_ratings\030\004 \003(\0132(.google.cloud.aiplat"
- + "form.v1.SafetyRatingB\003\340A\003\022 \n\016finish_mess"
- + "age\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021citation_metadata"
- + "\030\006 \001(\0132,.google.cloud.aiplatform.v1.Cita"
- + "tionMetadataB\003\340A\003\"n\n\014FinishReason\022\035\n\031FIN"
- + "ISH_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMA"
- + "X_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t"
- + "\n\005OTHER\020\005B\021\n\017_finish_message*\264\001\n\014HarmCat"
- + "egory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031"
- + "HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATE"
- + "GORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGOR"
- + "Y_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY"
- + "_EXPLICIT\020\004B\312\001\n\036com.google.cloud.aiplatf"
- + "orm.v1B\014ContentProtoP\001Z>cloud.google.com"
- + "/go/aiplatform/apiv1/aiplatformpb;aiplat"
- + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go"
- + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud"
- + "::AIPlatform::V1b\006proto3"
+ + "\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022L\n\010"
+ + "severity\030\006 \001(\01625.google.cloud.aiplatform"
+ + ".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\"P\n\020CitationMetadata\022<\n\t"
+ + "citations\030\001 \003(\0132$.google.cloud.aiplatfor"
+ + "m.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start"
+ + "_index\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_dat"
+ + "e\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\346\004\n\tCand"
+ + "idate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007content\030\002 \001"
+ + "(\0132#.google.cloud.aiplatform.v1.ContentB"
+ + "\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.google.clo"
+ + "ud.aiplatform.v1.Candidate.FinishReasonB"
+ + "\003\340A\003\022E\n\016safety_ratings\030\004 \003(\0132(.google.cl"
+ + "oud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n\016f"
+ + "inish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021citatio"
+ + "n_metadata\030\006 \001(\0132,.google.cloud.aiplatfo"
+ + "rm.v1.CitationMetadataB\003\340A\003\022N\n\022grounding"
+ + "_metadata\030\007 \001(\0132-.google.cloud.aiplatfor"
+ + "m.v1.GroundingMetadataB\003\340A\003\"\237\001\n\014FinishRe"
+ + "ason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004S"
+ + "TOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nREC"
+ + "ITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022P"
+ + "ROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finish"
+ + "_message\"T\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\tend_in"
+ + "dex\030\003 \001(\005B\003\340A\003\"\221\002\n\024GroundingAttribution\022"
+ + "H\n\003web\030\003 \001(\01324.google.cloud.aiplatform.v"
+ + "1.GroundingAttribution.WebB\003\340A\001H\000\0229\n\007seg"
+ + "ment\030\001 \001(\0132#.google.cloud.aiplatform.v1."
+ + "SegmentB\003\340A\003\022%\n\020confidence_score\030\002 \001(\002B\006"
+ + "\340A\001\340A\003H\001\210\001\001\032+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005"
+ + "title\030\002 \001(\tB\003\340A\003B\013\n\treferenceB\023\n\021_confid"
+ + "ence_score\"\213\001\n\021GroundingMetadata\022\037\n\022web_"
+ + "search_queries\030\001 \003(\tB\003\340A\001\022U\n\026grounding_a"
+ + "ttributions\030\002 \003(\01320.google.cloud.aiplatf"
+ + "orm.v1.GroundingAttributionB\003\340A\001*\264\001\n\014Har"
+ + "mCategory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000"
+ + "\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_"
+ + "CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CAT"
+ + "EGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXU"
+ + "ALLY_EXPLICIT\020\004B\312\001\n\036com.google.cloud.aip"
+ + "latform.v1B\014ContentProtoP\001Z>cloud.google"
+ + ".com/go/aiplatform/apiv1/aiplatformpb;ai"
+ + "platformpb\252\002\032Google.Cloud.AIPlatform.V1\312"
+ + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::C"
+ + "loud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -234,7 +273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_SafetyRating_descriptor,
new java.lang.String[] {
- "Category", "Probability", "Blocked",
+ "Category", "Probability", "ProbabilityScore", "Severity", "SeverityScore", "Blocked",
});
internal_static_google_cloud_aiplatform_v1_CitationMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
@@ -264,6 +303,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SafetyRatings",
"FinishMessage",
"CitationMetadata",
+ "GroundingMetadata",
+ });
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_Segment_descriptor,
+ new java.lang.String[] {
+ "PartIndex", "StartIndex", "EndIndex",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor,
+ new java.lang.String[] {
+ "Web", "Segment", "ConfidenceScore", "Reference",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor =
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor,
+ new java.lang.String[] {
+ "Uri", "Title",
+ });
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor,
+ new java.lang.String[] {
+ "WebSearchQueries", "GroundingAttributions",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
index a58978cc4e94..0eb7e24c8d6c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
@@ -42,6 +42,7 @@ private DatasetVersion() {
name_ = "";
etag_ = "";
bigQueryDatasetName_ = "";
+ displayName_ = "";
}
@java.lang.Override
@@ -319,6 +320,113 @@ public com.google.protobuf.ByteString getBigQueryDatasetNameBytes() {
}
}
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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 METADATA_FIELD_NUMBER = 8;
+ private com.google.protobuf.Value metadata_;
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Value getMetadata() {
+ return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
+ return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -348,6 +456,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getUpdateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(8, getMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -372,6 +486,12 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -399,6 +519,11 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getEtag().equals(other.getEtag())) return false;
if (!getBigQueryDatasetName().equals(other.getBigQueryDatasetName())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (hasMetadata() != other.hasMetadata()) return false;
+ if (hasMetadata()) {
+ if (!getMetadata().equals(other.getMetadata())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -424,6 +549,12 @@ public int hashCode() {
hash = (53 * hash) + getEtag().hashCode();
hash = (37 * hash) + BIG_QUERY_DATASET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBigQueryDatasetName().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ if (hasMetadata()) {
+ hash = (37 * hash) + METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetadata().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -566,6 +697,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
+ getMetadataFieldBuilder();
}
}
@@ -586,6 +718,12 @@ public Builder clear() {
}
etag_ = "";
bigQueryDatasetName_ = "";
+ displayName_ = "";
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
return this;
}
@@ -640,6 +778,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.DatasetVersion result)
if (((from_bitField0_ & 0x00000010) != 0)) {
result.bigQueryDatasetName_ = bigQueryDatasetName_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -709,6 +854,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DatasetVersion other) {
bitField0_ |= 0x00000010;
onChanged();
}
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (other.hasMetadata()) {
+ mergeMetadata(other.getMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -765,6 +918,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 50
+ case 58:
+ {
+ displayName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 58
+ case 66:
+ {
+ input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1513,6 +1678,321 @@ public Builder setBigQueryDatasetNameBytes(com.google.protobuf.ByteString value)
return this;
}
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @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_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Value metadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>
+ metadataBuilder_;
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metadata.
+ */
+ public com.google.protobuf.Value getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetadata(com.google.protobuf.Value value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeMetadata(com.google.protobuf.Value value) {
+ if (metadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && metadata_ != null
+ && metadata_ != com.google.protobuf.Value.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
+ } else {
+ metadata_ = value;
+ }
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.Value.Builder getMetadataBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>
+ getMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>(
+ getMetadata(), getParentForChildren(), isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
index 6a3ba566f06f..6595429fb9d2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
@@ -176,4 +176,74 @@ public interface DatasetVersionOrBuilder
* @return The bytes for bigQueryDatasetName.
*/
com.google.protobuf.ByteString getBigQueryDatasetNameBytes();
+
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ * + * The user-defined name of the DatasetVersion. + * The name can be up to 128 characters long and can consist of any UTF-8 + * characters. + *+ * + *
string display_name = 7;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The metadata.
+ */
+ com.google.protobuf.Value getMetadata();
+ /**
+ *
+ *
+ * + * Required. Output only. Additional information about the DatasetVersion. + *+ * + *
+ * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.protobuf.ValueOrBuilder getMetadataOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
index b789b0e98b2f..20ee0aa0a35d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
@@ -44,22 +44,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n0google/cloud/aiplatform/v1/dataset_ver"
+ "sion.proto\022\032google.cloud.aiplatform.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
- + "api/resource.proto\032\037google/protobuf/time"
- + "stamp.proto\"\321\002\n\016DatasetVersion\022\021\n\004name\030\001"
- + " \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google."
- + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
- + "\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 "
- + "\001(\tB\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis.c"
- + "om/DatasetVersion\022\\projects/{project}/lo"
- + "cations/{location}/datasets/{dataset}/da"
- + "tasetVersions/{dataset_version}B\321\001\n\036com."
- + "google.cloud.aiplatform.v1B\023DatasetVersi"
- + "onProtoP\001Z>cloud.google.com/go/aiplatfor"
- + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog"
- + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI"
- + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:"
- + ":V1b\006proto3"
+ + "api/resource.proto\032\034google/protobuf/stru"
+ + "ct.proto\032\037google/protobuf/timestamp.prot"
+ + "o\"\231\003\n\016DatasetVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022"
+ + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T"
+ + "imestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goo"
+ + "gle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\003 \001("
+ + "\t\022#\n\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024"
+ + "\n\014display_name\030\007 \001(\t\0220\n\010metadata\030\010 \001(\0132\026"
+ + ".google.protobuf.ValueB\006\340A\003\340A\002:\214\001\352A\210\001\n(a"
+ + "iplatform.googleapis.com/DatasetVersion\022"
+ + "\\projects/{project}/locations/{location}"
+ + "/datasets/{dataset}/datasetVersions/{dat"
+ + "aset_version}B\321\001\n\036com.google.cloud.aipla"
+ + "tform.v1B\023DatasetVersionProtoP\001Z>cloud.g"
+ + "oogle.com/go/aiplatform/apiv1/aiplatform"
+ + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor"
+ + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog"
+ + "le::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -67,6 +69,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.StructProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor =
@@ -75,7 +78,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor,
new java.lang.String[] {
- "Name", "CreateTime", "UpdateTime", "Etag", "BigQueryDatasetName",
+ "Name",
+ "CreateTime",
+ "UpdateTime",
+ "Etag",
+ "BigQueryDatasetName",
+ "DisplayName",
+ "Metadata",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
@@ -85,6 +94,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.StructProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroup.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroup.java
index 6ccc7506a1d0..638e632e55fa 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroup.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroup.java
@@ -130,8 +130,8 @@ public interface BigQueryOrBuilder
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -143,8 +143,8 @@ public interface BigQueryOrBuilder
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -156,8 +156,8 @@ public interface BigQueryOrBuilder
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -170,8 +170,8 @@ public interface BigQueryOrBuilder
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -294,8 +294,8 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigQuerySourceO
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -309,8 +309,8 @@ public com.google.protobuf.ProtocolStringList getEntityIdColumnsList() {
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -324,8 +324,8 @@ public int getEntityIdColumnsCount() {
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -340,8 +340,8 @@ public java.lang.String getEntityIdColumns(int index) {
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -986,8 +986,8 @@ private void ensureEntityIdColumnsIsMutable() {
*
*
* - * Optional. Columns to construct entity_id / row keys. Currently only - * supports 1 entity_id_column. If not provided defaults to `entity_id`. + * Optional. Columns to construct entity_id / row keys. + * If not provided defaults to `entity_id`. ** *
repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1003,8 +1003,8 @@ public com.google.protobuf.ProtocolStringList getEntityIdColumnsList() {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1019,8 +1019,8 @@ public int getEntityIdColumnsCount() {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1036,8 +1036,8 @@ public java.lang.String getEntityIdColumns(int index) {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1053,8 +1053,8 @@ public com.google.protobuf.ByteString getEntityIdColumnsBytes(int index) {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1078,8 +1078,8 @@ public Builder setEntityIdColumns(int index, java.lang.String value) {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1102,8 +1102,8 @@ public Builder addEntityIdColumns(java.lang.String value) {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1123,8 +1123,8 @@ public Builder addAllEntityIdColumns(java.lang.Iterable values
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1143,8 +1143,8 @@ public Builder clearEntityIdColumns() {
*
*
*
- * Optional. Columns to construct entity_id / row keys. Currently only
- * supports 1 entity_id_column. If not provided defaults to `entity_id`.
+ * Optional. Columns to construct entity_id / row keys.
+ * If not provided defaults to `entity_id`.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
index db352d7234c6..9025c7363695 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java
@@ -113,8 +113,7 @@ public interface BigQuerySourceOrBuilder
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -126,8 +125,7 @@ public interface BigQuerySourceOrBuilder
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -139,8 +137,7 @@ public interface BigQuerySourceOrBuilder
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -153,8 +150,7 @@ public interface BigQuerySourceOrBuilder
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -263,8 +259,7 @@ public com.google.protobuf.ByteString getUriBytes() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -278,8 +273,7 @@ public com.google.protobuf.ProtocolStringList getEntityIdColumnsList() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -293,8 +287,7 @@ public int getEntityIdColumnsCount() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -309,8 +302,7 @@ public java.lang.String getEntityIdColumns(int index) {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -823,8 +815,7 @@ private void ensureEntityIdColumnsIsMutable() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -840,8 +831,7 @@ public com.google.protobuf.ProtocolStringList getEntityIdColumnsList() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -856,8 +846,7 @@ public int getEntityIdColumnsCount() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -873,8 +862,7 @@ public java.lang.String getEntityIdColumns(int index) {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -890,8 +878,7 @@ public com.google.protobuf.ByteString getEntityIdColumnsBytes(int index) {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -915,8 +902,7 @@ public Builder setEntityIdColumns(int index, java.lang.String value) {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -939,8 +925,7 @@ public Builder addEntityIdColumns(java.lang.String value) {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -960,8 +945,7 @@ public Builder addAllEntityIdColumns(java.lang.Iterable values
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -980,8 +964,7 @@ public Builder clearEntityIdColumns() {
*
*
*
- * Required. Columns to construct entity_id / row keys. Start by supporting
- * 1 only.
+ * Required. Columns to construct entity_id / row keys.
*
*
* repeated string entity_id_columns = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1825,6 +1808,31 @@ com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup ge
*/
com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroupOrBuilder
getFeatureGroupsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the projectNumber field is set.
+ */
+ boolean hasProjectNumber();
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The projectNumber.
+ */
+ long getProjectNumber();
}
/**
*
@@ -2877,6 +2885,7 @@ public com.google.protobuf.Parser getParserForType() {
}
}
+ private int bitField0_;
public static final int FEATURE_GROUPS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -2967,6 +2976,39 @@ public int getFeatureGroupsCount() {
return featureGroups_.get(index);
}
+ public static final int PROJECT_NUMBER_FIELD_NUMBER = 2;
+ private long projectNumber_ = 0L;
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the projectNumber field is set.
+ */
+ @java.lang.Override
+ public boolean hasProjectNumber() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The projectNumber.
+ */
+ @java.lang.Override
+ public long getProjectNumber() {
+ return projectNumber_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2984,6 +3026,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < featureGroups_.size(); i++) {
output.writeMessage(1, featureGroups_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(2, projectNumber_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2996,6 +3041,9 @@ public int getSerializedSize() {
for (int i = 0; i < featureGroups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, featureGroups_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, projectNumber_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3013,6 +3061,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) obj;
if (!getFeatureGroupsList().equals(other.getFeatureGroupsList())) return false;
+ if (hasProjectNumber() != other.hasProjectNumber()) return false;
+ if (hasProjectNumber()) {
+ if (getProjectNumber() != other.getProjectNumber()) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3028,6 +3080,10 @@ public int hashCode() {
hash = (37 * hash) + FEATURE_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getFeatureGroupsList().hashCode();
}
+ if (hasProjectNumber()) {
+ hash = (37 * hash) + PROJECT_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProjectNumber());
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3180,6 +3236,7 @@ public Builder clear() {
featureGroupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
+ projectNumber_ = 0L;
return this;
}
@@ -3233,6 +3290,12 @@ private void buildPartialRepeatedFields(
private void buildPartial0(
com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.projectNumber_ = projectNumber_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -3313,6 +3376,9 @@ public Builder mergeFrom(
}
}
}
+ if (other.hasProjectNumber()) {
+ setProjectNumber(other.getProjectNumber());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3354,6 +3420,12 @@ public Builder mergeFrom(
}
break;
} // case 10
+ case 16:
+ {
+ projectNumber_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3799,6 +3871,74 @@ public Builder removeFeatureGroups(int index) {
return featureGroupsBuilder_;
}
+ private long projectNumber_;
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the projectNumber field is set.
+ */
+ @java.lang.Override
+ public boolean hasProjectNumber() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The projectNumber.
+ */
+ @java.lang.Override
+ public long getProjectNumber() {
+ return projectNumber_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The projectNumber to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectNumber(long value) {
+
+ projectNumber_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The project number of the parent project of the Feature Groups.
+ *
+ *
+ * optional int64 project_number = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectNumber() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ projectNumber_ = 0L;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
index 7b406be468ef..3865af3073d1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java
@@ -65,7 +65,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "w.proto\022\032google.cloud.aiplatform.v1\032\037goo"
+ "gle/api/field_behavior.proto\032\031google/api"
+ "/resource.proto\032\037google/protobuf/timesta"
- + "mp.proto\"\365\007\n\013FeatureView\022W\n\020big_query_so"
+ + "mp.proto\"\252\010\n\013FeatureView\022W\n\020big_query_so"
+ "urce\030\006 \001(\01326.google.cloud.aiplatform.v1."
+ "FeatureView.BigQuerySourceB\003\340A\001H\000\022e\n\027fea"
+ "ture_registry_source\030\t \001(\0132=.google.clou"
@@ -80,23 +80,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "orm.v1.FeatureView.SyncConfig\032B\n\016BigQuer"
+ "ySource\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\036\n\021entity_id_c"
+ "olumns\030\002 \003(\tB\003\340A\002\032\032\n\nSyncConfig\022\014\n\004cron\030"
- + "\001 \001(\t\032\311\001\n\025FeatureRegistrySource\022g\n\016featu"
+ + "\001 \001(\t\032\376\001\n\025FeatureRegistrySource\022g\n\016featu"
+ "re_groups\030\001 \003(\0132J.google.cloud.aiplatfor"
+ "m.v1.FeatureView.FeatureRegistrySource.F"
- + "eatureGroupB\003\340A\002\032G\n\014FeatureGroup\022\035\n\020feat"
- + "ure_group_id\030\001 \001(\tB\003\340A\002\022\030\n\013feature_ids\030\002"
- + " \003(\tB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001:\233\001\352A\227\001\n%aiplatform.goog"
- + "leapis.com/FeatureView\022nprojects/{projec"
- + "t}/locations/{location}/featureOnlineSto"
- + "res/{feature_online_store}/featureViews/"
- + "{feature_view}B\010\n\006sourceB\316\001\n\036com.google."
- + "cloud.aiplatform.v1B\020FeatureViewProtoP\001Z"
- + ">cloud.google.com/go/aiplatform/apiv1/ai"
- + "platformpb;aiplatformpb\252\002\032Google.Cloud.A"
- + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V"
- + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto"
- + "3"
+ + "eatureGroupB\003\340A\002\022 \n\016project_number\030\002 \001(\003"
+ + "B\003\340A\001H\000\210\001\001\032G\n\014FeatureGroup\022\035\n\020feature_gr"
+ + "oup_id\030\001 \001(\tB\003\340A\002\022\030\n\013feature_ids\030\002 \003(\tB\003"
+ + "\340A\002B\021\n\017_project_number\032-\n\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\233\001\352A\227\001\n%ai"
+ + "platform.googleapis.com/FeatureView\022npro"
+ + "jects/{project}/locations/{location}/fea"
+ + "tureOnlineStores/{feature_online_store}/"
+ + "featureViews/{feature_view}B\010\n\006sourceB\316\001"
+ + "\n\036com.google.cloud.aiplatform.v1B\020Featur"
+ + "eViewProtoP\001Z>cloud.google.com/go/aiplat"
+ + "form/apiv1/aiplatformpb;aiplatformpb\252\002\032G"
+ + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud"
+ + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo"
+ + "rm::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -144,7 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_FeatureView_FeatureRegistrySource_descriptor,
new java.lang.String[] {
- "FeatureGroups",
+ "FeatureGroups", "ProjectNumber",
});
internal_static_google_cloud_aiplatform_v1_FeatureView_FeatureRegistrySource_FeatureGroup_descriptor =
internal_static_google_cloud_aiplatform_v1_FeatureView_FeatureRegistrySource_descriptor
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSync.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSync.java
index 5248d89a4f69..9bc3956cd0d2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSync.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSync.java
@@ -64,6 +64,658 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.FeatureViewSync.Builder.class);
}
+ public interface SyncSummaryOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Total number of rows synced.
+ *
+ *
+ * int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowSynced.
+ */
+ long getRowSynced();
+
+ /**
+ *
+ *
+ *
+ * Output only. BigQuery slot milliseconds consumed for the sync job.
+ *
+ *
+ * int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The totalSlot.
+ */
+ long getTotalSlot();
+ }
+ /**
+ *
+ *
+ *
+ * Summary from the Sync job. For continuous syncs, the summary is updated
+ * periodically. For batch syncs, it gets updated on completion of the sync.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary}
+ */
+ public static final class SyncSummary extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary)
+ SyncSummaryOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SyncSummary.newBuilder() to construct.
+ private SyncSummary(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SyncSummary() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SyncSummary();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSyncProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSyncProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.class,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder.class);
+ }
+
+ public static final int ROW_SYNCED_FIELD_NUMBER = 1;
+ private long rowSynced_ = 0L;
+ /**
+ *
+ *
+ *
+ * Output only. Total number of rows synced.
+ *
+ *
+ * int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowSynced.
+ */
+ @java.lang.Override
+ public long getRowSynced() {
+ return rowSynced_;
+ }
+
+ public static final int TOTAL_SLOT_FIELD_NUMBER = 2;
+ private long totalSlot_ = 0L;
+ /**
+ *
+ *
+ *
+ * Output only. BigQuery slot milliseconds consumed for the sync job.
+ *
+ *
+ * int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The totalSlot.
+ */
+ @java.lang.Override
+ public long getTotalSlot() {
+ return totalSlot_;
+ }
+
+ 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 (rowSynced_ != 0L) {
+ output.writeInt64(1, rowSynced_);
+ }
+ if (totalSlot_ != 0L) {
+ output.writeInt64(2, totalSlot_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (rowSynced_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowSynced_);
+ }
+ if (totalSlot_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, totalSlot_);
+ }
+ 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.aiplatform.v1.FeatureViewSync.SyncSummary)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary other =
+ (com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary) obj;
+
+ if (getRowSynced() != other.getRowSynced()) return false;
+ if (getTotalSlot() != other.getTotalSlot()) 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) + ROW_SYNCED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowSynced());
+ hash = (37 * hash) + TOTAL_SLOT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalSlot());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary 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.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary 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.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary 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.aiplatform.v1.FeatureViewSync.SyncSummary parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary 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.aiplatform.v1.FeatureViewSync.SyncSummary parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary 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.aiplatform.v1.FeatureViewSync.SyncSummary 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;
+ }
+ /**
+ *
+ *
+ *
+ * Summary from the Sync job. For continuous syncs, the summary is updated
+ * periodically. For batch syncs, it gets updated on completion of the sync.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary)
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSyncProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSyncProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.class,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ rowSynced_ = 0L;
+ totalSlot_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSyncProto
+ .internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary build() {
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary buildPartial() {
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary result =
+ new com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.rowSynced_ = rowSynced_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalSlot_ = totalSlot_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary other) {
+ if (other
+ == com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance())
+ return this;
+ if (other.getRowSynced() != 0L) {
+ setRowSynced(other.getRowSynced());
+ }
+ if (other.getTotalSlot() != 0L) {
+ setTotalSlot(other.getTotalSlot());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ rowSynced_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16:
+ {
+ totalSlot_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private long rowSynced_;
+ /**
+ *
+ *
+ *
+ * Output only. Total number of rows synced.
+ *
+ *
+ * int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowSynced.
+ */
+ @java.lang.Override
+ public long getRowSynced() {
+ return rowSynced_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Total number of rows synced.
+ *
+ *
+ * int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The rowSynced to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRowSynced(long value) {
+
+ rowSynced_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Total number of rows synced.
+ *
+ *
+ * int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRowSynced() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ rowSynced_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalSlot_;
+ /**
+ *
+ *
+ *
+ * Output only. BigQuery slot milliseconds consumed for the sync job.
+ *
+ *
+ * int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The totalSlot.
+ */
+ @java.lang.Override
+ public long getTotalSlot() {
+ return totalSlot_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. BigQuery slot milliseconds consumed for the sync job.
+ *
+ *
+ * int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The totalSlot to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalSlot(long value) {
+
+ totalSlot_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. BigQuery slot milliseconds consumed for the sync job.
+ *
+ *
+ * int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalSlot() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ totalSlot_ = 0L;
+ 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.aiplatform.v1.FeatureViewSync.SyncSummary)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary)
+ private static final com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary();
+ }
+
+ public static com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SyncSummary parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@@ -265,6 +917,63 @@ public com.google.rpc.StatusOrBuilder getFinalStatusOrBuilder() {
return finalStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : finalStatus_;
}
+ public static final int SYNC_SUMMARY_FIELD_NUMBER = 6;
+ private com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary syncSummary_;
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the syncSummary field is set.
+ */
+ @java.lang.Override
+ public boolean hasSyncSummary() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The syncSummary.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary getSyncSummary() {
+ return syncSummary_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance()
+ : syncSummary_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder
+ getSyncSummaryOrBuilder() {
+ return syncSummary_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance()
+ : syncSummary_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -291,6 +1000,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getRunTime());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSyncSummary());
+ }
getUnknownFields().writeTo(output);
}
@@ -312,6 +1024,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRunTime());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSyncSummary());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -341,6 +1056,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasFinalStatus()) {
if (!getFinalStatus().equals(other.getFinalStatus())) return false;
}
+ if (hasSyncSummary() != other.hasSyncSummary()) return false;
+ if (hasSyncSummary()) {
+ if (!getSyncSummary().equals(other.getSyncSummary())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -366,6 +1085,10 @@ public int hashCode() {
hash = (37 * hash) + FINAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getFinalStatus().hashCode();
}
+ if (hasSyncSummary()) {
+ hash = (37 * hash) + SYNC_SUMMARY_FIELD_NUMBER;
+ hash = (53 * hash) + getSyncSummary().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -510,6 +1233,7 @@ private void maybeForceBuilderInitialization() {
getCreateTimeFieldBuilder();
getRunTimeFieldBuilder();
getFinalStatusFieldBuilder();
+ getSyncSummaryFieldBuilder();
}
}
@@ -533,6 +1257,11 @@ public Builder clear() {
finalStatusBuilder_.dispose();
finalStatusBuilder_ = null;
}
+ syncSummary_ = null;
+ if (syncSummaryBuilder_ != null) {
+ syncSummaryBuilder_.dispose();
+ syncSummaryBuilder_ = null;
+ }
return this;
}
@@ -586,6 +1315,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureViewSync result
finalStatusBuilder_ == null ? finalStatus_ : finalStatusBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.syncSummary_ =
+ syncSummaryBuilder_ == null ? syncSummary_ : syncSummaryBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -648,6 +1382,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureViewSync other) {
if (other.hasFinalStatus()) {
mergeFinalStatus(other.getFinalStatus());
}
+ if (other.hasSyncSummary()) {
+ mergeSyncSummary(other.getSyncSummary());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -698,6 +1435,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 42
+ case 50:
+ {
+ input.readMessage(getSyncSummaryFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1415,6 +2158,216 @@ public com.google.rpc.StatusOrBuilder getFinalStatusOrBuilder() {
return finalStatusBuilder_;
}
+ private com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary syncSummary_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder>
+ syncSummaryBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the syncSummary field is set.
+ */
+ public boolean hasSyncSummary() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The syncSummary.
+ */
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary getSyncSummary() {
+ if (syncSummaryBuilder_ == null) {
+ return syncSummary_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance()
+ : syncSummary_;
+ } else {
+ return syncSummaryBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSyncSummary(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary value) {
+ if (syncSummaryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ syncSummary_ = value;
+ } else {
+ syncSummaryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSyncSummary(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder builderForValue) {
+ if (syncSummaryBuilder_ == null) {
+ syncSummary_ = builderForValue.build();
+ } else {
+ syncSummaryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeSyncSummary(
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary value) {
+ if (syncSummaryBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && syncSummary_ != null
+ && syncSummary_
+ != com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary
+ .getDefaultInstance()) {
+ getSyncSummaryBuilder().mergeFrom(value);
+ } else {
+ syncSummary_ = value;
+ }
+ } else {
+ syncSummaryBuilder_.mergeFrom(value);
+ }
+ if (syncSummary_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearSyncSummary() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ syncSummary_ = null;
+ if (syncSummaryBuilder_ != null) {
+ syncSummaryBuilder_.dispose();
+ syncSummaryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder
+ getSyncSummaryBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getSyncSummaryFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder
+ getSyncSummaryOrBuilder() {
+ if (syncSummaryBuilder_ != null) {
+ return syncSummaryBuilder_.getMessageOrBuilder();
+ } else {
+ return syncSummary_ == null
+ ? com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.getDefaultInstance()
+ : syncSummary_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder>
+ getSyncSummaryFieldBuilder() {
+ if (syncSummaryBuilder_ == null) {
+ syncSummaryBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.Builder,
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder>(
+ getSyncSummary(), getParentForChildren(), isClean());
+ syncSummary_ = null;
+ }
+ return syncSummaryBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncOrBuilder.java
index 5d82f0d8450f..774ab14e7b98 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncOrBuilder.java
@@ -164,4 +164,45 @@ public interface FeatureViewSyncOrBuilder
* .google.rpc.Status final_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.rpc.StatusOrBuilder getFinalStatusOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the syncSummary field is set.
+ */
+ boolean hasSyncSummary();
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The syncSummary.
+ */
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary getSyncSummary();
+ /**
+ *
+ *
+ *
+ * Output only. Summary of the sync job.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummaryOrBuilder getSyncSummaryOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncProto.java
index 838cfa2da9f3..f7d99d270587 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncProto.java
@@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_FeatureViewSync_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_FeatureViewSync_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -46,22 +50,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032\037google/api/field_behavior.proto\032\031googl"
+ "e/api/resource.proto\032\037google/protobuf/ti"
+ "mestamp.proto\032\027google/rpc/status.proto\032\032"
- + "google/type/interval.proto\"\375\002\n\017FeatureVi"
+ + "google/type/interval.proto\"\222\004\n\017FeatureVi"
+ "ewSync\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time"
+ "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
+ ",\n\010run_time\030\005 \001(\0132\025.google.type.Interval"
+ "B\003\340A\003\022-\n\014final_status\030\004 \001(\0132\022.google.rpc"
- + ".StatusB\003\340A\003:\303\001\352A\277\001\n)aiplatform.googleap"
- + "is.com/FeatureViewSync\022\221\001projects/{proje"
- + "ct}/locations/{location}/featureOnlineSt"
- + "ores/{feature_online_store}/featureViews"
- + "/{feature_view}/featureViewSyncs/feature"
- + "_view_syncB\322\001\n\036com.google.cloud.aiplatfo"
- + "rm.v1B\024FeatureViewSyncProtoP\001Z>cloud.goo"
- + "gle.com/go/aiplatform/apiv1/aiplatformpb"
- + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform."
- + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google"
- + "::Cloud::Aiplatform::V1b\006proto3"
+ + ".StatusB\003\340A\003\022R\n\014sync_summary\030\006 \001(\01327.goo"
+ + "gle.cloud.aiplatform.v1.FeatureViewSync."
+ + "SyncSummaryB\003\340A\003\032?\n\013SyncSummary\022\027\n\nrow_s"
+ + "ynced\030\001 \001(\003B\003\340A\003\022\027\n\ntotal_slot\030\002 \001(\003B\003\340A"
+ + "\003:\303\001\352A\277\001\n)aiplatform.googleapis.com/Feat"
+ + "ureViewSync\022\221\001projects/{project}/locatio"
+ + "ns/{location}/featureOnlineStores/{featu"
+ + "re_online_store}/featureViews/{feature_v"
+ + "iew}/featureViewSyncs/feature_view_syncB"
+ + "\322\001\n\036com.google.cloud.aiplatform.v1B\024Feat"
+ + "ureViewSyncProtoP\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::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -79,7 +87,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_FeatureViewSync_descriptor,
new java.lang.String[] {
- "Name", "CreateTime", "RunTime", "FinalStatus",
+ "Name", "CreateTime", "RunTime", "FinalStatus", "SyncSummary",
+ });
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor =
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_FeatureViewSync_SyncSummary_descriptor,
+ new java.lang.String[] {
+ "RowSynced", "TotalSlot",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSource.java
new file mode 100644
index 000000000000..5d4acedced28
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSource.java
@@ -0,0 +1,626 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/model.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Contains information about the source of the models generated from Generative
+ * AI Studio.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GenieSource}
+ */
+public final class GenieSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenieSource)
+ GenieSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenieSource.newBuilder() to construct.
+ private GenieSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GenieSource() {
+ baseModelUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GenieSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_GenieSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GenieSource.class,
+ com.google.cloud.aiplatform.v1.GenieSource.Builder.class);
+ }
+
+ public static final int BASE_MODEL_URI_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseModelUri_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The baseModelUri.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseModelUri() {
+ java.lang.Object ref = baseModelUri_;
+ 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();
+ baseModelUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for baseModelUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBaseModelUriBytes() {
+ java.lang.Object ref = baseModelUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseModelUri_ = 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(baseModelUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseModelUri_);
+ }
+ 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(baseModelUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseModelUri_);
+ }
+ 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.aiplatform.v1.GenieSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GenieSource other =
+ (com.google.cloud.aiplatform.v1.GenieSource) obj;
+
+ if (!getBaseModelUri().equals(other.getBaseModelUri())) 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) + BASE_MODEL_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseModelUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource 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.aiplatform.v1.GenieSource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource 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.aiplatform.v1.GenieSource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource 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.aiplatform.v1.GenieSource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource 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.aiplatform.v1.GenieSource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource 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.aiplatform.v1.GenieSource 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;
+ }
+ /**
+ *
+ *
+ *
+ * Contains information about the source of the models generated from Generative
+ * AI Studio.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GenieSource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GenieSource)
+ com.google.cloud.aiplatform.v1.GenieSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_GenieSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GenieSource.class,
+ com.google.cloud.aiplatform.v1.GenieSource.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.GenieSource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseModelUri_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource build() {
+ com.google.cloud.aiplatform.v1.GenieSource result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource buildPartial() {
+ com.google.cloud.aiplatform.v1.GenieSource result =
+ new com.google.cloud.aiplatform.v1.GenieSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GenieSource result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseModelUri_ = baseModelUri_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GenieSource) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GenieSource) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenieSource other) {
+ if (other == com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance()) return this;
+ if (!other.getBaseModelUri().isEmpty()) {
+ baseModelUri_ = other.baseModelUri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ baseModelUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object baseModelUri_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The baseModelUri.
+ */
+ public java.lang.String getBaseModelUri() {
+ java.lang.Object ref = baseModelUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseModelUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for baseModelUri.
+ */
+ public com.google.protobuf.ByteString getBaseModelUriBytes() {
+ java.lang.Object ref = baseModelUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseModelUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The baseModelUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseModelUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseModelUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseModelUri() {
+ baseModelUri_ = getDefaultInstance().getBaseModelUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for baseModelUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseModelUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ baseModelUri_ = 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.aiplatform.v1.GenieSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenieSource)
+ private static final com.google.cloud.aiplatform.v1.GenieSource DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenieSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenieSource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenieSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSourceOrBuilder.java
new file mode 100644
index 000000000000..04e5b58bcb8f
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenieSourceOrBuilder.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/model.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface GenieSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GenieSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The baseModelUri.
+ */
+ java.lang.String getBaseModelUri();
+ /**
+ *
+ *
+ *
+ * Required. The public base model URI.
+ *
+ *
+ * string base_model_uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for baseModelUri.
+ */
+ com.google.protobuf.ByteString getBaseModelUriBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrieval.java
new file mode 100644
index 000000000000..abd15a1fa44f
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrieval.java
@@ -0,0 +1,543 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/tool.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Tool to retrieve public web data for grounding, powered by Google.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GoogleSearchRetrieval}
+ */
+public final class GoogleSearchRetrieval extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GoogleSearchRetrieval)
+ GoogleSearchRetrievalOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GoogleSearchRetrieval.newBuilder() to construct.
+ private GoogleSearchRetrieval(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GoogleSearchRetrieval() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GoogleSearchRetrieval();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.class,
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder.class);
+ }
+
+ public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 1;
+ private boolean disableAttribution_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ @java.lang.Override
+ public boolean getDisableAttribution() {
+ return disableAttribution_;
+ }
+
+ 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 (disableAttribution_ != false) {
+ output.writeBool(1, disableAttribution_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (disableAttribution_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableAttribution_);
+ }
+ 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.aiplatform.v1.GoogleSearchRetrieval)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval other =
+ (com.google.cloud.aiplatform.v1.GoogleSearchRetrieval) obj;
+
+ if (getDisableAttribution() != other.getDisableAttribution()) 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) + DISABLE_ATTRIBUTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAttribution());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval 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.aiplatform.v1.GoogleSearchRetrieval parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval 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.aiplatform.v1.GoogleSearchRetrieval parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval 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.aiplatform.v1.GoogleSearchRetrieval parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval 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.aiplatform.v1.GoogleSearchRetrieval parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval 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.aiplatform.v1.GoogleSearchRetrieval 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;
+ }
+ /**
+ *
+ *
+ *
+ * Tool to retrieve public web data for grounding, powered by Google.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GoogleSearchRetrieval}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GoogleSearchRetrieval)
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.class,
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ disableAttribution_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval build() {
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval buildPartial() {
+ com.google.cloud.aiplatform.v1.GoogleSearchRetrieval result =
+ new com.google.cloud.aiplatform.v1.GoogleSearchRetrieval(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GoogleSearchRetrieval result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.disableAttribution_ = disableAttribution_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GoogleSearchRetrieval) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GoogleSearchRetrieval) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GoogleSearchRetrieval other) {
+ if (other == com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance())
+ return this;
+ if (other.getDisableAttribution() != false) {
+ setDisableAttribution(other.getDisableAttribution());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ disableAttribution_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private boolean disableAttribution_;
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ @java.lang.Override
+ public boolean getDisableAttribution() {
+ return disableAttribution_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The disableAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisableAttribution(boolean value) {
+
+ disableAttribution_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisableAttribution() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ disableAttribution_ = false;
+ 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.aiplatform.v1.GoogleSearchRetrieval)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GoogleSearchRetrieval)
+ private static final com.google.cloud.aiplatform.v1.GoogleSearchRetrieval DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GoogleSearchRetrieval();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GoogleSearchRetrieval parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrievalOrBuilder.java
new file mode 100644
index 000000000000..e640d21cafa0
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleSearchRetrievalOrBuilder.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/tool.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface GoogleSearchRetrievalOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GoogleSearchRetrieval)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ boolean getDisableAttribution();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttribution.java
new file mode 100644
index 000000000000..af20c55fc0c7
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttribution.java
@@ -0,0 +1,2142 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Grounding attribution.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingAttribution}
+ */
+public final class GroundingAttribution extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingAttribution)
+ GroundingAttributionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GroundingAttribution.newBuilder() to construct.
+ private GroundingAttribution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GroundingAttribution() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GroundingAttribution();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.class,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder.class);
+ }
+
+ public interface WebOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingAttribution.Web)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The title.
+ */
+ java.lang.String getTitle();
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+ }
+ /**
+ *
+ *
+ *
+ * Attribution from the web.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingAttribution.Web}
+ */
+ public static final class Web extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingAttribution.Web)
+ WebOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Web.newBuilder() to construct.
+ private Web(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Web() {
+ uri_ = "";
+ title_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Web();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.class,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder.class);
+ }
+
+ public static final int URI_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object title_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The title.
+ */
+ @java.lang.Override
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ 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();
+ title_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for title.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = 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(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
+ }
+ 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(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
+ }
+ 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.aiplatform.v1.GroundingAttribution.Web)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web other =
+ (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) obj;
+
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getTitle().equals(other.getTitle())) 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) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web 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.aiplatform.v1.GroundingAttribution.Web parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web 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.aiplatform.v1.GroundingAttribution.Web parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web 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.aiplatform.v1.GroundingAttribution.Web parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web 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.aiplatform.v1.GroundingAttribution.Web parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web 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.aiplatform.v1.GroundingAttribution.Web 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;
+ }
+ /**
+ *
+ *
+ *
+ * Attribution from the web.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingAttribution.Web}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingAttribution.Web)
+ com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.class,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.GroundingAttribution.Web.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uri_ = "";
+ title_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_Web_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web build() {
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web buildPartial() {
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web result =
+ new com.google.cloud.aiplatform.v1.GroundingAttribution.Web(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingAttribution.Web result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.title_ = title_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GroundingAttribution.Web) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GroundingAttribution.Web) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingAttribution.Web other) {
+ if (other == com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance())
+ return this;
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getTitle().isEmpty()) {
+ title_ = other.title_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ title_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI reference of the attribution.
+ *
+ *
+ * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The title.
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ title_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+ title_ = getDefaultInstance().getTitle();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Title of the attribution.
+ *
+ *
+ * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ title_ = 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.aiplatform.v1.GroundingAttribution.Web)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingAttribution.Web)
+ private static final com.google.cloud.aiplatform.v1.GroundingAttribution.Web DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingAttribution.Web();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution.Web getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Web parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int bitField0_;
+ private int referenceCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object reference_;
+
+ public enum ReferenceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ WEB(3),
+ REFERENCE_NOT_SET(0);
+ private final int value;
+
+ private ReferenceCase(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.
+ */
+ @java.lang.Deprecated
+ public static ReferenceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ReferenceCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return WEB;
+ case 0:
+ return REFERENCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public ReferenceCase getReferenceCase() {
+ return ReferenceCase.forNumber(referenceCase_);
+ }
+
+ public static final int WEB_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the web field is set.
+ */
+ @java.lang.Override
+ public boolean hasWeb() {
+ return referenceCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The web.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web getWeb() {
+ if (referenceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_;
+ }
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder getWebOrBuilder() {
+ if (referenceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_;
+ }
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+
+ public static final int SEGMENT_FIELD_NUMBER = 1;
+ private com.google.cloud.aiplatform.v1.Segment segment_;
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the segment field is set.
+ */
+ @java.lang.Override
+ public boolean hasSegment() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The segment.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Segment getSegment() {
+ return segment_ == null
+ ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()
+ : segment_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder() {
+ return segment_ == null
+ ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()
+ : segment_;
+ }
+
+ public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2;
+ private float confidenceScore_ = 0F;
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the confidenceScore field is set.
+ */
+ @java.lang.Override
+ public boolean hasConfidenceScore() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public float getConfidenceScore() {
+ return confidenceScore_;
+ }
+
+ 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, getSegment());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeFloat(2, confidenceScore_);
+ }
+ if (referenceCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_);
+ }
+ 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, getSegment());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_);
+ }
+ if (referenceCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_);
+ }
+ 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.aiplatform.v1.GroundingAttribution)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingAttribution other =
+ (com.google.cloud.aiplatform.v1.GroundingAttribution) obj;
+
+ if (hasSegment() != other.hasSegment()) return false;
+ if (hasSegment()) {
+ if (!getSegment().equals(other.getSegment())) return false;
+ }
+ if (hasConfidenceScore() != other.hasConfidenceScore()) return false;
+ if (hasConfidenceScore()) {
+ if (java.lang.Float.floatToIntBits(getConfidenceScore())
+ != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false;
+ }
+ if (!getReferenceCase().equals(other.getReferenceCase())) return false;
+ switch (referenceCase_) {
+ case 3:
+ if (!getWeb().equals(other.getWeb())) 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();
+ if (hasSegment()) {
+ hash = (37 * hash) + SEGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSegment().hashCode();
+ }
+ if (hasConfidenceScore()) {
+ hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore());
+ }
+ switch (referenceCase_) {
+ case 3:
+ hash = (37 * hash) + WEB_FIELD_NUMBER;
+ hash = (53 * hash) + getWeb().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution 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.aiplatform.v1.GroundingAttribution parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution 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.aiplatform.v1.GroundingAttribution parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution 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.aiplatform.v1.GroundingAttribution parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution 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.aiplatform.v1.GroundingAttribution parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution 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.aiplatform.v1.GroundingAttribution 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;
+ }
+ /**
+ *
+ *
+ *
+ * Grounding attribution.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingAttribution}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingAttribution)
+ com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.class,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.GroundingAttribution.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getSegmentFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (webBuilder_ != null) {
+ webBuilder_.clear();
+ }
+ segment_ = null;
+ if (segmentBuilder_ != null) {
+ segmentBuilder_.dispose();
+ segmentBuilder_ = null;
+ }
+ confidenceScore_ = 0F;
+ referenceCase_ = 0;
+ reference_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingAttribution_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution build() {
+ com.google.cloud.aiplatform.v1.GroundingAttribution result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution buildPartial() {
+ com.google.cloud.aiplatform.v1.GroundingAttribution result =
+ new com.google.cloud.aiplatform.v1.GroundingAttribution(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingAttribution result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.confidenceScore_ = confidenceScore_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.GroundingAttribution result) {
+ result.referenceCase_ = referenceCase_;
+ result.reference_ = this.reference_;
+ if (referenceCase_ == 3 && webBuilder_ != null) {
+ result.reference_ = webBuilder_.build();
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GroundingAttribution) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GroundingAttribution) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingAttribution other) {
+ if (other == com.google.cloud.aiplatform.v1.GroundingAttribution.getDefaultInstance())
+ return this;
+ if (other.hasSegment()) {
+ mergeSegment(other.getSegment());
+ }
+ if (other.hasConfidenceScore()) {
+ setConfidenceScore(other.getConfidenceScore());
+ }
+ switch (other.getReferenceCase()) {
+ case WEB:
+ {
+ mergeWeb(other.getWeb());
+ break;
+ }
+ case REFERENCE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 10
+ case 21:
+ {
+ confidenceScore_ = input.readFloat();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 21
+ case 26:
+ {
+ input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry);
+ referenceCase_ = 3;
+ break;
+ } // case 26
+ 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
+ return this;
+ }
+
+ private int referenceCase_ = 0;
+ private java.lang.Object reference_;
+
+ public ReferenceCase getReferenceCase() {
+ return ReferenceCase.forNumber(referenceCase_);
+ }
+
+ public Builder clearReference() {
+ referenceCase_ = 0;
+ reference_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder>
+ webBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the web field is set.
+ */
+ @java.lang.Override
+ public boolean hasWeb() {
+ return referenceCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The web.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web getWeb() {
+ if (webBuilder_ == null) {
+ if (referenceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_;
+ }
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ } else {
+ if (referenceCase_ == 3) {
+ return webBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setWeb(com.google.cloud.aiplatform.v1.GroundingAttribution.Web value) {
+ if (webBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reference_ = value;
+ onChanged();
+ } else {
+ webBuilder_.setMessage(value);
+ }
+ referenceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setWeb(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder builderForValue) {
+ if (webBuilder_ == null) {
+ reference_ = builderForValue.build();
+ onChanged();
+ } else {
+ webBuilder_.setMessage(builderForValue.build());
+ }
+ referenceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeWeb(com.google.cloud.aiplatform.v1.GroundingAttribution.Web value) {
+ if (webBuilder_ == null) {
+ if (referenceCase_ == 3
+ && reference_
+ != com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance()) {
+ reference_ =
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.newBuilder(
+ (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ reference_ = value;
+ }
+ onChanged();
+ } else {
+ if (referenceCase_ == 3) {
+ webBuilder_.mergeFrom(value);
+ } else {
+ webBuilder_.setMessage(value);
+ }
+ }
+ referenceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearWeb() {
+ if (webBuilder_ == null) {
+ if (referenceCase_ == 3) {
+ referenceCase_ = 0;
+ reference_ = null;
+ onChanged();
+ }
+ } else {
+ if (referenceCase_ == 3) {
+ referenceCase_ = 0;
+ reference_ = null;
+ }
+ webBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder getWebBuilder() {
+ return getWebFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder getWebOrBuilder() {
+ if ((referenceCase_ == 3) && (webBuilder_ != null)) {
+ return webBuilder_.getMessageOrBuilder();
+ } else {
+ if (referenceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_;
+ }
+ return com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder>
+ getWebFieldBuilder() {
+ if (webBuilder_ == null) {
+ if (!(referenceCase_ == 3)) {
+ reference_ = com.google.cloud.aiplatform.v1.GroundingAttribution.Web.getDefaultInstance();
+ }
+ webBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder>(
+ (com.google.cloud.aiplatform.v1.GroundingAttribution.Web) reference_,
+ getParentForChildren(),
+ isClean());
+ reference_ = null;
+ }
+ referenceCase_ = 3;
+ onChanged();
+ return webBuilder_;
+ }
+
+ private com.google.cloud.aiplatform.v1.Segment segment_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Segment,
+ com.google.cloud.aiplatform.v1.Segment.Builder,
+ com.google.cloud.aiplatform.v1.SegmentOrBuilder>
+ segmentBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the segment field is set.
+ */
+ public boolean hasSegment() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The segment.
+ */
+ public com.google.cloud.aiplatform.v1.Segment getSegment() {
+ if (segmentBuilder_ == null) {
+ return segment_ == null
+ ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()
+ : segment_;
+ } else {
+ return segmentBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSegment(com.google.cloud.aiplatform.v1.Segment value) {
+ if (segmentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ segment_ = value;
+ } else {
+ segmentBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSegment(com.google.cloud.aiplatform.v1.Segment.Builder builderForValue) {
+ if (segmentBuilder_ == null) {
+ segment_ = builderForValue.build();
+ } else {
+ segmentBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeSegment(com.google.cloud.aiplatform.v1.Segment value) {
+ if (segmentBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && segment_ != null
+ && segment_ != com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()) {
+ getSegmentBuilder().mergeFrom(value);
+ } else {
+ segment_ = value;
+ }
+ } else {
+ segmentBuilder_.mergeFrom(value);
+ }
+ if (segment_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearSegment() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ segment_ = null;
+ if (segmentBuilder_ != null) {
+ segmentBuilder_.dispose();
+ segmentBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Segment.Builder getSegmentBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSegmentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder() {
+ if (segmentBuilder_ != null) {
+ return segmentBuilder_.getMessageOrBuilder();
+ } else {
+ return segment_ == null
+ ? com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()
+ : segment_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Segment,
+ com.google.cloud.aiplatform.v1.Segment.Builder,
+ com.google.cloud.aiplatform.v1.SegmentOrBuilder>
+ getSegmentFieldBuilder() {
+ if (segmentBuilder_ == null) {
+ segmentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Segment,
+ com.google.cloud.aiplatform.v1.Segment.Builder,
+ com.google.cloud.aiplatform.v1.SegmentOrBuilder>(
+ getSegment(), getParentForChildren(), isClean());
+ segment_ = null;
+ }
+ return segmentBuilder_;
+ }
+
+ private float confidenceScore_;
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the confidenceScore field is set.
+ */
+ @java.lang.Override
+ public boolean hasConfidenceScore() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The confidenceScore.
+ */
+ @java.lang.Override
+ public float getConfidenceScore() {
+ return confidenceScore_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The confidenceScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConfidenceScore(float value) {
+
+ confidenceScore_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConfidenceScore() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ confidenceScore_ = 0F;
+ 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.aiplatform.v1.GroundingAttribution)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingAttribution)
+ private static final com.google.cloud.aiplatform.v1.GroundingAttribution DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingAttribution();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingAttribution getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GroundingAttribution parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttributionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttributionOrBuilder.java
new file mode 100644
index 000000000000..b3caddd8e5cc
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingAttributionOrBuilder.java
@@ -0,0 +1,141 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface GroundingAttributionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingAttribution)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the web field is set.
+ */
+ boolean hasWeb();
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The web.
+ */
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Web getWeb();
+ /**
+ *
+ *
+ *
+ * Optional. Attribution from the web.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingAttribution.WebOrBuilder getWebOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the segment field is set.
+ */
+ boolean hasSegment();
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The segment.
+ */
+ com.google.cloud.aiplatform.v1.Segment getSegment();
+ /**
+ *
+ *
+ *
+ * Output only. Segment of the content this attribution belongs to.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SegmentOrBuilder getSegmentOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the confidenceScore field is set.
+ */
+ boolean hasConfidenceScore();
+ /**
+ *
+ *
+ *
+ * Optional. Output only. Confidence score of the attribution. Ranges from 0
+ * to 1. 1 is the most confident.
+ *
+ *
+ *
+ * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The confidenceScore.
+ */
+ float getConfidenceScore();
+
+ com.google.cloud.aiplatform.v1.GroundingAttribution.ReferenceCase getReferenceCase();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
new file mode 100644
index 000000000000..5d43ef3f8d74
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
@@ -0,0 +1,1289 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Metadata returned to client when grounding is enabled.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingMetadata}
+ */
+public final class GroundingMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingMetadata)
+ GroundingMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GroundingMetadata.newBuilder() to construct.
+ private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GroundingMetadata() {
+ webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ groundingAttributions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GroundingMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.class,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder.class);
+ }
+
+ public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ return webSearchQueries_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of webSearchQueries.
+ */
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
+ }
+
+ public static final int GROUNDING_ATTRIBUTIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ groundingAttributions_;
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getGroundingAttributionsList() {
+ return groundingAttributions_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>
+ getGroundingAttributionsOrBuilderList() {
+ return groundingAttributions_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getGroundingAttributionsCount() {
+ return groundingAttributions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttribution getGroundingAttributions(int index) {
+ return groundingAttributions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder
+ getGroundingAttributionsOrBuilder(int index) {
+ return groundingAttributions_.get(index);
+ }
+
+ 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 {
+ for (int i = 0; i < webSearchQueries_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i));
+ }
+ for (int i = 0; i < groundingAttributions_.size(); i++) {
+ output.writeMessage(2, groundingAttributions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < webSearchQueries_.size(); i++) {
+ dataSize += computeStringSizeNoTag(webSearchQueries_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getWebSearchQueriesList().size();
+ }
+ for (int i = 0; i < groundingAttributions_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, groundingAttributions_.get(i));
+ }
+ 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.aiplatform.v1.GroundingMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingMetadata other =
+ (com.google.cloud.aiplatform.v1.GroundingMetadata) obj;
+
+ if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false;
+ if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) 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 (getWebSearchQueriesCount() > 0) {
+ hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + getWebSearchQueriesList().hashCode();
+ }
+ if (getGroundingAttributionsCount() > 0) {
+ hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroundingAttributionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata 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.aiplatform.v1.GroundingMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata 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.aiplatform.v1.GroundingMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata 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.aiplatform.v1.GroundingMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata 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.aiplatform.v1.GroundingMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata 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.aiplatform.v1.GroundingMetadata 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 returned to client when grounding is enabled.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GroundingMetadata)
+ com.google.cloud.aiplatform.v1.GroundingMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.class,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.GroundingMetadata.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (groundingAttributionsBuilder_ == null) {
+ groundingAttributions_ = java.util.Collections.emptyList();
+ } else {
+ groundingAttributions_ = null;
+ groundingAttributionsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata build() {
+ com.google.cloud.aiplatform.v1.GroundingMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata buildPartial() {
+ com.google.cloud.aiplatform.v1.GroundingMetadata result =
+ new com.google.cloud.aiplatform.v1.GroundingMetadata(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.aiplatform.v1.GroundingMetadata result) {
+ if (groundingAttributionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ groundingAttributions_ = java.util.Collections.unmodifiableList(groundingAttributions_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.groundingAttributions_ = groundingAttributions_;
+ } else {
+ result.groundingAttributions_ = groundingAttributionsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingMetadata result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ webSearchQueries_.makeImmutable();
+ result.webSearchQueries_ = webSearchQueries_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GroundingMetadata) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GroundingMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingMetadata other) {
+ if (other == com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance())
+ return this;
+ if (!other.webSearchQueries_.isEmpty()) {
+ if (webSearchQueries_.isEmpty()) {
+ webSearchQueries_ = other.webSearchQueries_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.addAll(other.webSearchQueries_);
+ }
+ onChanged();
+ }
+ if (groundingAttributionsBuilder_ == null) {
+ if (!other.groundingAttributions_.isEmpty()) {
+ if (groundingAttributions_.isEmpty()) {
+ groundingAttributions_ = other.groundingAttributions_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.addAll(other.groundingAttributions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.groundingAttributions_.isEmpty()) {
+ if (groundingAttributionsBuilder_.isEmpty()) {
+ groundingAttributionsBuilder_.dispose();
+ groundingAttributionsBuilder_ = null;
+ groundingAttributions_ = other.groundingAttributions_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ groundingAttributionsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getGroundingAttributionsFieldBuilder()
+ : null;
+ } else {
+ groundingAttributionsBuilder_.addAllMessages(other.groundingAttributions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(s);
+ break;
+ } // case 10
+ case 18:
+ {
+ com.google.cloud.aiplatform.v1.GroundingAttribution m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.parser(),
+ extensionRegistry);
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.add(m);
+ } else {
+ groundingAttributionsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 18
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureWebSearchQueriesIsMutable() {
+ if (!webSearchQueries_.isModifiable()) {
+ webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ webSearchQueries_.makeImmutable();
+ return webSearchQueries_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of webSearchQueries.
+ */
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The webSearchQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWebSearchQueries(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueries(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllWebSearchQueries(java.lang.Iterable values) {
+ ensureWebSearchQueriesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWebSearchQueries() {
+ webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes of the webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ groundingAttributions_ = java.util.Collections.emptyList();
+
+ private void ensureGroundingAttributionsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ groundingAttributions_ =
+ new java.util.ArrayList(
+ groundingAttributions_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>
+ groundingAttributionsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getGroundingAttributionsList() {
+ if (groundingAttributionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(groundingAttributions_);
+ } else {
+ return groundingAttributionsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getGroundingAttributionsCount() {
+ if (groundingAttributionsBuilder_ == null) {
+ return groundingAttributions_.size();
+ } else {
+ return groundingAttributionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttribution getGroundingAttributions(int index) {
+ if (groundingAttributionsBuilder_ == null) {
+ return groundingAttributions_.get(index);
+ } else {
+ return groundingAttributionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGroundingAttributions(
+ int index, com.google.cloud.aiplatform.v1.GroundingAttribution value) {
+ if (groundingAttributionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.set(index, value);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setGroundingAttributions(
+ int index, com.google.cloud.aiplatform.v1.GroundingAttribution.Builder builderForValue) {
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGroundingAttributions(
+ com.google.cloud.aiplatform.v1.GroundingAttribution value) {
+ if (groundingAttributionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.add(value);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGroundingAttributions(
+ int index, com.google.cloud.aiplatform.v1.GroundingAttribution value) {
+ if (groundingAttributionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.add(index, value);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGroundingAttributions(
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder builderForValue) {
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGroundingAttributions(
+ int index, com.google.cloud.aiplatform.v1.GroundingAttribution.Builder builderForValue) {
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllGroundingAttributions(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.GroundingAttribution> values) {
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingAttributions_);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearGroundingAttributions() {
+ if (groundingAttributionsBuilder_ == null) {
+ groundingAttributions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeGroundingAttributions(int index) {
+ if (groundingAttributionsBuilder_ == null) {
+ ensureGroundingAttributionsIsMutable();
+ groundingAttributions_.remove(index);
+ onChanged();
+ } else {
+ groundingAttributionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Builder
+ getGroundingAttributionsBuilder(int index) {
+ return getGroundingAttributionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder
+ getGroundingAttributionsOrBuilder(int index) {
+ if (groundingAttributionsBuilder_ == null) {
+ return groundingAttributions_.get(index);
+ } else {
+ return groundingAttributionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>
+ getGroundingAttributionsOrBuilderList() {
+ if (groundingAttributionsBuilder_ != null) {
+ return groundingAttributionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(groundingAttributions_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Builder
+ addGroundingAttributionsBuilder() {
+ return getGroundingAttributionsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.GroundingAttribution.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingAttribution.Builder
+ addGroundingAttributionsBuilder(int index) {
+ return getGroundingAttributionsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1.GroundingAttribution.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getGroundingAttributionsBuilderList() {
+ return getGroundingAttributionsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>
+ getGroundingAttributionsFieldBuilder() {
+ if (groundingAttributionsBuilder_ == null) {
+ groundingAttributionsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingAttribution,
+ com.google.cloud.aiplatform.v1.GroundingAttribution.Builder,
+ com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>(
+ groundingAttributions_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ groundingAttributions_ = null;
+ }
+ return groundingAttributionsBuilder_;
+ }
+
+ @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.aiplatform.v1.GroundingMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingMetadata)
+ private static final com.google.cloud.aiplatform.v1.GroundingMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GroundingMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
new file mode 100644
index 000000000000..7e76158a5b72
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
@@ -0,0 +1,141 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface GroundingMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ java.util.List getWebSearchQueriesList();
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of webSearchQueries.
+ */
+ int getWebSearchQueriesCount();
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ java.lang.String getWebSearchQueries(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Web search queries for the following-up web search.
+ *
+ *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ com.google.protobuf.ByteString getWebSearchQueriesBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List
+ getGroundingAttributionsList();
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingAttribution getGroundingAttributions(int index);
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getGroundingAttributionsCount();
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder>
+ getGroundingAttributionsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Optional. List of grounding attributions.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder(
+ int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java
index 09d8b9b19648..691280340fab 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java
@@ -1620,6 +1620,16 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
* GREATER = 5;
*/
GREATER(5),
+ /**
+ *
+ *
+ *
+ * Datapoints are eligible iff their value is != the query's.
+ *
+ *
+ * NOT_EQUAL = 6;
+ */
+ NOT_EQUAL(6),
UNRECOGNIZED(-1),
;
@@ -1683,6 +1693,16 @@ public enum Operator implements com.google.protobuf.ProtocolMessageEnum {
* GREATER = 5;
*/
public static final int GREATER_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Datapoints are eligible iff their value is != the query's.
+ *
+ *
+ * NOT_EQUAL = 6;
+ */
+ public static final int NOT_EQUAL_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -1720,6 +1740,8 @@ public static Operator forNumber(int value) {
return GREATER_EQUAL;
case 5:
return GREATER;
+ case 6:
+ return NOT_EQUAL;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
index f6cc1a1c18ef..3b7cb1a54e7e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexProto.java
@@ -94,7 +94,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\000\022\020\n\014BATCH_UPDATE\020\001\022\021\n\rSTREAM_UPDATE\020\002:]"
+ "\352AZ\n\037aiplatform.googleapis.com/Index\0227pr"
+ "ojects/{project}/locations/{location}/in"
- + "dexes/{index}\"\364\005\n\016IndexDatapoint\022\031\n\014data"
+ + "dexes/{index}\"\203\006\n\016IndexDatapoint\022\031\n\014data"
+ "point_id\030\001 \001(\tB\003\340A\002\022\033\n\016feature_vector\030\002 "
+ "\003(\002B\003\340A\002\022N\n\trestricts\030\004 \003(\01326.google.clo"
+ "ud.aiplatform.v1.IndexDatapoint.Restrict"
@@ -104,23 +104,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005 \001(\01326.google.cloud.aiplatform.v1.Index"
+ "Datapoint.CrowdingTagB\003\340A\001\032G\n\013Restrictio"
+ "n\022\021\n\tnamespace\030\001 \001(\t\022\022\n\nallow_list\030\002 \003(\t"
- + "\022\021\n\tdeny_list\030\003 \003(\t\032\263\002\n\022NumericRestricti"
+ + "\022\021\n\tdeny_list\030\003 \003(\t\032\302\002\n\022NumericRestricti"
+ "on\022\023\n\tvalue_int\030\002 \001(\003H\000\022\025\n\013value_float\030\003"
+ " \001(\002H\000\022\026\n\014value_double\030\004 \001(\001H\000\022\021\n\tnamesp"
+ "ace\030\001 \001(\t\022R\n\002op\030\005 \001(\0162F.google.cloud.aip"
+ "latform.v1.IndexDatapoint.NumericRestric"
- + "tion.Operator\"i\n\010Operator\022\030\n\024OPERATOR_UN"
+ + "tion.Operator\"x\n\010Operator\022\030\n\024OPERATOR_UN"
+ "SPECIFIED\020\000\022\010\n\004LESS\020\001\022\016\n\nLESS_EQUAL\020\002\022\t\n"
+ "\005EQUAL\020\003\022\021\n\rGREATER_EQUAL\020\004\022\013\n\007GREATER\020\005"
- + "B\007\n\005Value\032)\n\013CrowdingTag\022\032\n\022crowding_att"
- + "ribute\030\001 \001(\t\"C\n\nIndexStats\022\032\n\rvectors_co"
- + "unt\030\001 \001(\003B\003\340A\003\022\031\n\014shards_count\030\002 \001(\005B\003\340A"
- + "\003B\310\001\n\036com.google.cloud.aiplatform.v1B\nIn"
- + "dexProtoP\001Z>cloud.google.com/go/aiplatfo"
- + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo"
- + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A"
- + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform"
- + "::V1b\006proto3"
+ + "\022\r\n\tNOT_EQUAL\020\006B\007\n\005Value\032)\n\013CrowdingTag\022"
+ + "\032\n\022crowding_attribute\030\001 \001(\t\"C\n\nIndexStat"
+ + "s\022\032\n\rvectors_count\030\001 \001(\003B\003\340A\003\022\031\n\014shards_"
+ + "count\030\002 \001(\005B\003\340A\003B\310\001\n\036com.google.cloud.ai"
+ + "platform.v1B\nIndexProtoP\001Z>cloud.google."
+ + "com/go/aiplatform/apiv1/aiplatformpb;aip"
+ + "latformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002"
+ + "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
+ + "oud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java
index 8db73cf71aee..28246aa94c33 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java
@@ -136,20 +136,23 @@ public com.google.protobuf.ByteString getParentBytes() {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -175,20 +178,23 @@ public java.lang.String getFilter() {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1012,20 +1018,23 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1050,20 +1059,23 @@ public java.lang.String getFilter() {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1088,20 +1100,23 @@ public com.google.protobuf.ByteString getFilterBytes() {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1125,20 +1140,23 @@ public Builder setFilter(java.lang.String value) {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1158,20 +1176,23 @@ public Builder clearFilter() {
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequestOrBuilder.java
index 150f33df7971..5a47a30fb99b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequestOrBuilder.java
@@ -62,20 +62,23 @@ public interface ListEndpointsRequestOrBuilder
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -90,20 +93,23 @@ public interface ListEndpointsRequestOrBuilder
* Optional. An expression for filtering the results of the request. For field
* names both snake_case and camelCase are supported.
*
- * * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
+ * * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
+ * ID,
* i.e. the last segment of the Endpoint's [resource
* name][google.cloud.aiplatform.v1.Endpoint.name].
- * * `display_name` supports = and, !=
+ * * `display_name` supports `=` and `!=`.
* * `labels` supports general map functions that is:
* * `labels.key=value` - key:value equality
- * * `labels.key:* or labels:key - key existence
+ * * `labels.key:*` or `labels:key` - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports `=`.
*
* Some examples:
*
* * `endpoint=1`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java
index 5028ea38a14d..5fa844397963 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java
@@ -144,12 +144,14 @@ public com.google.protobuf.ByteString getParentBytes() {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -183,12 +185,14 @@ public java.lang.String getFilter() {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -1017,12 +1021,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -1055,12 +1061,14 @@ public java.lang.String getFilter() {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -1093,12 +1101,14 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -1130,12 +1140,14 @@ public Builder setFilter(java.lang.String value) {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -1163,12 +1175,14 @@ public Builder clearFilter() {
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequestOrBuilder.java
index 38f886bd725c..2e15d84038e9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequestOrBuilder.java
@@ -70,12 +70,14 @@ public interface ListModelsRequestOrBuilder
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
@@ -98,12 +100,14 @@ public interface ListModelsRequestOrBuilder
* * `labels.key=value` - key:value equality
* * `labels.key:* or labels:key - key existence
* * A key including a space must be quoted. `labels."a key"`.
+ * * `base_model_name` only supports =
*
* Some examples:
*
* * `model=1234`
* * `displayName="myDisplayName"`
* * `labels.myKey="myValue"`
+ * * `baseModelName="text-bison"`
*
*
* string filter = 2;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java
index d3fbb52379f4..6495c2ca6e44 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java
@@ -3588,6 +3588,1189 @@ public com.google.cloud.aiplatform.v1.Model.OriginalModelInfo getDefaultInstance
}
}
+ public interface BaseModelSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Model.BaseModelSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return Whether the modelGardenSource field is set.
+ */
+ boolean hasModelGardenSource();
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return The modelGardenSource.
+ */
+ com.google.cloud.aiplatform.v1.ModelGardenSource getModelGardenSource();
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder getModelGardenSourceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return Whether the genieSource field is set.
+ */
+ boolean hasGenieSource();
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return The genieSource.
+ */
+ com.google.cloud.aiplatform.v1.GenieSource getGenieSource();
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ com.google.cloud.aiplatform.v1.GenieSourceOrBuilder getGenieSourceOrBuilder();
+
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.SourceCase getSourceCase();
+ }
+ /**
+ *
+ *
+ *
+ * User input field to specify the base model source. Currently it only
+ * supports specifing the Model Garden models and Genie models.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Model.BaseModelSource}
+ */
+ public static final class BaseModelSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Model.BaseModelSource)
+ BaseModelSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BaseModelSource.newBuilder() to construct.
+ private BaseModelSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BaseModelSource() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new BaseModelSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.class,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder.class);
+ }
+
+ private int sourceCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object source_;
+
+ public enum SourceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ MODEL_GARDEN_SOURCE(1),
+ GENIE_SOURCE(2),
+ SOURCE_NOT_SET(0);
+ private final int value;
+
+ private SourceCase(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.
+ */
+ @java.lang.Deprecated
+ public static SourceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return MODEL_GARDEN_SOURCE;
+ case 2:
+ return GENIE_SOURCE;
+ case 0:
+ return SOURCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public static final int MODEL_GARDEN_SOURCE_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return Whether the modelGardenSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasModelGardenSource() {
+ return sourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return The modelGardenSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource getModelGardenSource() {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.ModelGardenSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder
+ getModelGardenSourceOrBuilder() {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.ModelGardenSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+
+ public static final int GENIE_SOURCE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return Whether the genieSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenieSource() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return The genieSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource getGenieSource() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.GenieSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSourceOrBuilder getGenieSourceOrBuilder() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.GenieSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.GenieSource.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 (sourceCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.aiplatform.v1.ModelGardenSource) source_);
+ }
+ if (sourceCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.aiplatform.v1.GenieSource) source_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (sourceCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.aiplatform.v1.ModelGardenSource) source_);
+ }
+ if (sourceCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.aiplatform.v1.GenieSource) source_);
+ }
+ 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.aiplatform.v1.Model.BaseModelSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource other =
+ (com.google.cloud.aiplatform.v1.Model.BaseModelSource) obj;
+
+ if (!getSourceCase().equals(other.getSourceCase())) return false;
+ switch (sourceCase_) {
+ case 1:
+ if (!getModelGardenSource().equals(other.getModelGardenSource())) return false;
+ break;
+ case 2:
+ if (!getGenieSource().equals(other.getGenieSource())) 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 (sourceCase_) {
+ case 1:
+ hash = (37 * hash) + MODEL_GARDEN_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getModelGardenSource().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + GENIE_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getGenieSource().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource 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.aiplatform.v1.Model.BaseModelSource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource 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.aiplatform.v1.Model.BaseModelSource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource 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.aiplatform.v1.Model.BaseModelSource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource 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.aiplatform.v1.Model.BaseModelSource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource 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.aiplatform.v1.Model.BaseModelSource 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;
+ }
+ /**
+ *
+ *
+ *
+ * User input field to specify the base model source. Currently it only
+ * supports specifing the Model Garden models and Genie models.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Model.BaseModelSource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Model.BaseModelSource)
+ com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.class,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.Model.BaseModelSource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (modelGardenSourceBuilder_ != null) {
+ modelGardenSourceBuilder_.clear();
+ }
+ if (genieSourceBuilder_ != null) {
+ genieSourceBuilder_.clear();
+ }
+ sourceCase_ = 0;
+ source_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource build() {
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource buildPartial() {
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource result =
+ new com.google.cloud.aiplatform.v1.Model.BaseModelSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.Model.BaseModelSource result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Model.BaseModelSource result) {
+ result.sourceCase_ = sourceCase_;
+ result.source_ = this.source_;
+ if (sourceCase_ == 1 && modelGardenSourceBuilder_ != null) {
+ result.source_ = modelGardenSourceBuilder_.build();
+ }
+ if (sourceCase_ == 2 && genieSourceBuilder_ != null) {
+ result.source_ = genieSourceBuilder_.build();
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.Model.BaseModelSource) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.Model.BaseModelSource) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model.BaseModelSource other) {
+ if (other == com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance())
+ return this;
+ switch (other.getSourceCase()) {
+ case MODEL_GARDEN_SOURCE:
+ {
+ mergeModelGardenSource(other.getModelGardenSource());
+ break;
+ }
+ case GENIE_SOURCE:
+ {
+ mergeGenieSource(other.getGenieSource());
+ break;
+ }
+ case SOURCE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ getModelGardenSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 1;
+ break;
+ } // case 10
+ case 18:
+ {
+ input.readMessage(getGenieSourceFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 2;
+ break;
+ } // case 18
+ 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
+ return this;
+ }
+
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public Builder clearSource() {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ModelGardenSource,
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder,
+ com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder>
+ modelGardenSourceBuilder_;
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return Whether the modelGardenSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasModelGardenSource() {
+ return sourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ *
+ * @return The modelGardenSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource getModelGardenSource() {
+ if (modelGardenSourceBuilder_ == null) {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.ModelGardenSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 1) {
+ return modelGardenSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ public Builder setModelGardenSource(com.google.cloud.aiplatform.v1.ModelGardenSource value) {
+ if (modelGardenSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ modelGardenSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ public Builder setModelGardenSource(
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder builderForValue) {
+ if (modelGardenSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ modelGardenSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ public Builder mergeModelGardenSource(
+ com.google.cloud.aiplatform.v1.ModelGardenSource value) {
+ if (modelGardenSourceBuilder_ == null) {
+ if (sourceCase_ == 1
+ && source_ != com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.ModelGardenSource.newBuilder(
+ (com.google.cloud.aiplatform.v1.ModelGardenSource) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 1) {
+ modelGardenSourceBuilder_.mergeFrom(value);
+ } else {
+ modelGardenSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ public Builder clearModelGardenSource() {
+ if (modelGardenSourceBuilder_ == null) {
+ if (sourceCase_ == 1) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 1) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ modelGardenSourceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ public com.google.cloud.aiplatform.v1.ModelGardenSource.Builder
+ getModelGardenSourceBuilder() {
+ return getModelGardenSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder
+ getModelGardenSourceOrBuilder() {
+ if ((sourceCase_ == 1) && (modelGardenSourceBuilder_ != null)) {
+ return modelGardenSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.aiplatform.v1.ModelGardenSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Source information of Model Garden models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ModelGardenSource,
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder,
+ com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder>
+ getModelGardenSourceFieldBuilder() {
+ if (modelGardenSourceBuilder_ == null) {
+ if (!(sourceCase_ == 1)) {
+ source_ = com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+ modelGardenSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.ModelGardenSource,
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder,
+ com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1.ModelGardenSource) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 1;
+ onChanged();
+ return modelGardenSourceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GenieSource,
+ com.google.cloud.aiplatform.v1.GenieSource.Builder,
+ com.google.cloud.aiplatform.v1.GenieSourceOrBuilder>
+ genieSourceBuilder_;
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return Whether the genieSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenieSource() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ *
+ * @return The genieSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSource getGenieSource() {
+ if (genieSourceBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.GenieSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 2) {
+ return genieSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ public Builder setGenieSource(com.google.cloud.aiplatform.v1.GenieSource value) {
+ if (genieSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ genieSourceBuilder_.setMessage(value);
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ public Builder setGenieSource(
+ com.google.cloud.aiplatform.v1.GenieSource.Builder builderForValue) {
+ if (genieSourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ genieSourceBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ public Builder mergeGenieSource(com.google.cloud.aiplatform.v1.GenieSource value) {
+ if (genieSourceBuilder_ == null) {
+ if (sourceCase_ == 2
+ && source_ != com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.GenieSource.newBuilder(
+ (com.google.cloud.aiplatform.v1.GenieSource) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 2) {
+ genieSourceBuilder_.mergeFrom(value);
+ } else {
+ genieSourceBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ public Builder clearGenieSource() {
+ if (genieSourceBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ genieSourceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ public com.google.cloud.aiplatform.v1.GenieSource.Builder getGenieSourceBuilder() {
+ return getGenieSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenieSourceOrBuilder getGenieSourceOrBuilder() {
+ if ((sourceCase_ == 2) && (genieSourceBuilder_ != null)) {
+ return genieSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.GenieSource) source_;
+ }
+ return com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Information about the base model of Genie models.
+ *
+ *
+ * .google.cloud.aiplatform.v1.GenieSource genie_source = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GenieSource,
+ com.google.cloud.aiplatform.v1.GenieSource.Builder,
+ com.google.cloud.aiplatform.v1.GenieSourceOrBuilder>
+ getGenieSourceFieldBuilder() {
+ if (genieSourceBuilder_ == null) {
+ if (!(sourceCase_ == 2)) {
+ source_ = com.google.cloud.aiplatform.v1.GenieSource.getDefaultInstance();
+ }
+ genieSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GenieSource,
+ com.google.cloud.aiplatform.v1.GenieSource.Builder,
+ com.google.cloud.aiplatform.v1.GenieSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1.GenieSource) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 2;
+ onChanged();
+ return genieSourceBuilder_;
+ }
+
+ @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.aiplatform.v1.Model.BaseModelSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Model.BaseModelSource)
+ private static final com.google.cloud.aiplatform.v1.Model.BaseModelSource DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Model.BaseModelSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.Model.BaseModelSource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BaseModelSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@@ -6038,6 +7221,66 @@ public com.google.protobuf.ByteString getMetadataArtifactBytes() {
}
}
+ public static final int BASE_MODEL_SOURCE_FIELD_NUMBER = 50;
+ private com.google.cloud.aiplatform.v1.Model.BaseModelSource baseModelSource_;
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baseModelSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseModelSource() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baseModelSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource getBaseModelSource() {
+ return baseModelSource_ == null
+ ? com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()
+ : baseModelSource_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder
+ getBaseModelSourceOrBuilder() {
+ return baseModelSource_ == null
+ ? com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()
+ : baseModelSource_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -6148,6 +7391,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJob_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 47, pipelineJob_);
}
+ if (((bitField0_ & 0x00001000) != 0)) {
+ output.writeMessage(50, getBaseModelSource());
+ }
getUnknownFields().writeTo(output);
}
@@ -6282,6 +7528,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJob_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, pipelineJob_);
}
+ if (((bitField0_ & 0x00001000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getBaseModelSource());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6367,6 +7616,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getOriginalModelInfo().equals(other.getOriginalModelInfo())) return false;
}
if (!getMetadataArtifact().equals(other.getMetadataArtifact())) return false;
+ if (hasBaseModelSource() != other.hasBaseModelSource()) return false;
+ if (hasBaseModelSource()) {
+ if (!getBaseModelSource().equals(other.getBaseModelSource())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -6476,6 +7729,10 @@ public int hashCode() {
}
hash = (37 * hash) + METADATA_ARTIFACT_FIELD_NUMBER;
hash = (53 * hash) + getMetadataArtifact().hashCode();
+ if (hasBaseModelSource()) {
+ hash = (37 * hash) + BASE_MODEL_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseModelSource().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -6651,6 +7908,7 @@ private void maybeForceBuilderInitialization() {
getEncryptionSpecFieldBuilder();
getModelSourceInfoFieldBuilder();
getOriginalModelInfoFieldBuilder();
+ getBaseModelSourceFieldBuilder();
}
}
@@ -6749,6 +8007,11 @@ public Builder clear() {
originalModelInfoBuilder_ = null;
}
metadataArtifact_ = "";
+ baseModelSource_ = null;
+ if (baseModelSourceBuilder_ != null) {
+ baseModelSourceBuilder_.dispose();
+ baseModelSourceBuilder_ = null;
+ }
return this;
}
@@ -6924,6 +8187,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Model result) {
if (((from_bitField0_ & 0x20000000) != 0)) {
result.metadataArtifact_ = metadataArtifact_;
}
+ if (((from_bitField0_ & 0x40000000) != 0)) {
+ result.baseModelSource_ =
+ baseModelSourceBuilder_ == null ? baseModelSource_ : baseModelSourceBuilder_.build();
+ to_bitField0_ |= 0x00001000;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -7159,6 +8427,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) {
bitField0_ |= 0x20000000;
onChanged();
}
+ if (other.hasBaseModelSource()) {
+ mergeBaseModelSource(other.getBaseModelSource());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -7406,6 +8677,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00002000;
break;
} // case 378
+ case 402:
+ {
+ input.readMessage(getBaseModelSourceFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x40000000;
+ break;
+ } // case 402
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -14375,6 +15652,223 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.aiplatform.v1.Model.BaseModelSource baseModelSource_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder>
+ baseModelSourceBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baseModelSource field is set.
+ */
+ public boolean hasBaseModelSource() {
+ return ((bitField0_ & 0x40000000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baseModelSource.
+ */
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource getBaseModelSource() {
+ if (baseModelSourceBuilder_ == null) {
+ return baseModelSource_ == null
+ ? com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()
+ : baseModelSource_;
+ } else {
+ return baseModelSourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBaseModelSource(com.google.cloud.aiplatform.v1.Model.BaseModelSource value) {
+ if (baseModelSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseModelSource_ = value;
+ } else {
+ baseModelSourceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x40000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBaseModelSource(
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder builderForValue) {
+ if (baseModelSourceBuilder_ == null) {
+ baseModelSource_ = builderForValue.build();
+ } else {
+ baseModelSourceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x40000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeBaseModelSource(
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource value) {
+ if (baseModelSourceBuilder_ == null) {
+ if (((bitField0_ & 0x40000000) != 0)
+ && baseModelSource_ != null
+ && baseModelSource_
+ != com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()) {
+ getBaseModelSourceBuilder().mergeFrom(value);
+ } else {
+ baseModelSource_ = value;
+ }
+ } else {
+ baseModelSourceBuilder_.mergeFrom(value);
+ }
+ if (baseModelSource_ != null) {
+ bitField0_ |= 0x40000000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearBaseModelSource() {
+ bitField0_ = (bitField0_ & ~0x40000000);
+ baseModelSource_ = null;
+ if (baseModelSourceBuilder_ != null) {
+ baseModelSourceBuilder_.dispose();
+ baseModelSourceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder
+ getBaseModelSourceBuilder() {
+ bitField0_ |= 0x40000000;
+ onChanged();
+ return getBaseModelSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder
+ getBaseModelSourceOrBuilder() {
+ if (baseModelSourceBuilder_ != null) {
+ return baseModelSourceBuilder_.getMessageOrBuilder();
+ } else {
+ return baseModelSource_ == null
+ ? com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()
+ : baseModelSource_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder>
+ getBaseModelSourceFieldBuilder() {
+ if (baseModelSourceBuilder_ == null) {
+ baseModelSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder,
+ com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder>(
+ getBaseModelSource(), getParentForChildren(), isClean());
+ baseModelSource_ = null;
+ }
+ return baseModelSourceBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSource.java
new file mode 100644
index 000000000000..1deada85aea3
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSource.java
@@ -0,0 +1,627 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/model.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Contains information about the source of the models generated from Model
+ * Garden.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ModelGardenSource}
+ */
+public final class ModelGardenSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelGardenSource)
+ ModelGardenSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ModelGardenSource.newBuilder() to construct.
+ private ModelGardenSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ModelGardenSource() {
+ publicModelName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ModelGardenSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_ModelGardenSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ModelGardenSource.class,
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder.class);
+ }
+
+ public static final int PUBLIC_MODEL_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object publicModelName_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The publicModelName.
+ */
+ @java.lang.Override
+ public java.lang.String getPublicModelName() {
+ java.lang.Object ref = publicModelName_;
+ 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();
+ publicModelName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for publicModelName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPublicModelNameBytes() {
+ java.lang.Object ref = publicModelName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicModelName_ = 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(publicModelName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicModelName_);
+ }
+ 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(publicModelName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicModelName_);
+ }
+ 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.aiplatform.v1.ModelGardenSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ModelGardenSource other =
+ (com.google.cloud.aiplatform.v1.ModelGardenSource) obj;
+
+ if (!getPublicModelName().equals(other.getPublicModelName())) 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) + PUBLIC_MODEL_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPublicModelName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource 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.aiplatform.v1.ModelGardenSource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource 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.aiplatform.v1.ModelGardenSource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource 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.aiplatform.v1.ModelGardenSource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource 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.aiplatform.v1.ModelGardenSource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource 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.aiplatform.v1.ModelGardenSource 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;
+ }
+ /**
+ *
+ *
+ *
+ * Contains information about the source of the models generated from Model
+ * Garden.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ModelGardenSource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModelGardenSource)
+ com.google.cloud.aiplatform.v1.ModelGardenSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_ModelGardenSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ModelGardenSource.class,
+ com.google.cloud.aiplatform.v1.ModelGardenSource.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.ModelGardenSource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ publicModelName_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ModelProto
+ .internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource build() {
+ com.google.cloud.aiplatform.v1.ModelGardenSource result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource buildPartial() {
+ com.google.cloud.aiplatform.v1.ModelGardenSource result =
+ new com.google.cloud.aiplatform.v1.ModelGardenSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.ModelGardenSource result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.publicModelName_ = publicModelName_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.ModelGardenSource) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.ModelGardenSource) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelGardenSource other) {
+ if (other == com.google.cloud.aiplatform.v1.ModelGardenSource.getDefaultInstance())
+ return this;
+ if (!other.getPublicModelName().isEmpty()) {
+ publicModelName_ = other.publicModelName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ publicModelName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object publicModelName_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The publicModelName.
+ */
+ public java.lang.String getPublicModelName() {
+ java.lang.Object ref = publicModelName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ publicModelName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for publicModelName.
+ */
+ public com.google.protobuf.ByteString getPublicModelNameBytes() {
+ java.lang.Object ref = publicModelName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ publicModelName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The publicModelName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicModelName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ publicModelName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPublicModelName() {
+ publicModelName_ = getDefaultInstance().getPublicModelName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for publicModelName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPublicModelNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ publicModelName_ = 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.aiplatform.v1.ModelGardenSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModelGardenSource)
+ private static final com.google.cloud.aiplatform.v1.ModelGardenSource DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ModelGardenSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ModelGardenSource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ModelGardenSource parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ModelGardenSource getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSourceOrBuilder.java
new file mode 100644
index 000000000000..23e65ea16104
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenSourceOrBuilder.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/model.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface ModelGardenSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ModelGardenSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The publicModelName.
+ */
+ java.lang.String getPublicModelName();
+ /**
+ *
+ *
+ *
+ * Required. The model garden source model resource name.
+ *
+ *
+ * string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for publicModelName.
+ */
+ com.google.protobuf.ByteString getPublicModelNameBytes();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java
index 59028bac9f9e..6a0eb349c183 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java
@@ -1861,4 +1861,48 @@ java.lang.String getLabelsOrDefault(
* @return The bytes for metadataArtifact.
*/
com.google.protobuf.ByteString getMetadataArtifactBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baseModelSource field is set.
+ */
+ boolean hasBaseModelSource();
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baseModelSource.
+ */
+ com.google.cloud.aiplatform.v1.Model.BaseModelSource getBaseModelSource();
+ /**
+ *
+ *
+ *
+ * Optional. User input field to specify the base model source. Currently it
+ * only supports specifing the Model Garden models and Genie models.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.Model.BaseModelSourceOrBuilder getBaseModelSourceOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java
index b4016bbbf543..fea029c470fe 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java
@@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Model_OriginalModelInfo_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Model_OriginalModelInfo_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_Model_LabelsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -52,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_LargeModelReference_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_LargeModelReference_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_ModelGardenSource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GenieSource_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -95,7 +107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/cloud/aiplatform/v1/explanation.proto\032"
+ "\036google/protobuf/duration.proto\032\034google/"
+ "protobuf/struct.proto\032\037google/protobuf/t"
- + "imestamp.proto\"\377\022\n\005Model\022\014\n\004name\030\001 \001(\t\022\032"
+ + "imestamp.proto\"\377\024\n\005Model\022\014\n\004name\030\001 \001(\t\022\032"
+ "\n\nversion_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017version_al"
+ "iases\030\035 \003(\t\022<\n\023version_create_time\030\037 \001(\013"
+ "2\032.google.protobuf.TimestampB\003\340A\003\022<\n\023ver"
@@ -136,61 +148,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "InfoB\003\340A\003\022U\n\023original_model_info\030\" \001(\01323"
+ ".google.cloud.aiplatform.v1.Model.Origin"
+ "alModelInfoB\003\340A\003\022\036\n\021metadata_artifact\030, "
- + "\001(\tB\003\340A\003\032\325\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003\340"
- + "A\003\022b\n\023exportable_contents\030\002 \003(\0162@.google"
- + ".cloud.aiplatform.v1.Model.ExportFormat."
- + "ExportableContentB\003\340A\003\"P\n\021ExportableCont"
- + "ent\022\"\n\036EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022"
- + "\014\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032\334\001\n\tDataStats\022!"
- + "\n\031training_data_items_count\030\001 \001(\003\022#\n\033val"
- + "idation_data_items_count\030\002 \001(\003\022\035\n\025test_d"
- + "ata_items_count\030\003 \001(\003\022\"\n\032training_annota"
- + "tions_count\030\004 \001(\003\022$\n\034validation_annotati"
- + "ons_count\030\005 \001(\003\022\036\n\026test_annotations_coun"
- + "t\030\006 \001(\003\032K\n\021OriginalModelInfo\0226\n\005model\030\001 "
- + "\001(\tB\'\340A\003\372A!\n\037aiplatform.googleapis.com/M"
- + "odel\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
- + "e\030\002 \001(\t:\0028\001\"\214\001\n\027DeploymentResourcesType\022"
- + ")\n%DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED"
- + "\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022\027\n\023AUTOMATIC"
- + "_RESOURCES\020\002\022\024\n\020SHARED_RESOURCES\020\003:\\\352AY\n"
- + "\037aiplatform.googleapis.com/Model\0226projec"
- + "ts/{project}/locations/{location}/models"
- + "/{model}\"(\n\023LargeModelReference\022\021\n\004name\030"
- + "\001 \001(\tB\003\340A\002\"{\n\017PredictSchemata\022 \n\023instanc"
- + "e_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_sc"
- + "hema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema"
- + "_uri\030\003 \001(\tB\003\340A\005\"\223\004\n\022ModelContainerSpec\022\031"
- + "\n\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003"
- + "(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132"
- + "\".google.cloud.aiplatform.v1.EnvVarB\003\340A\005"
- + "\0224\n\005ports\030\005 \003(\0132 .google.cloud.aiplatfor"
- + "m.v1.PortB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340"
- + "A\005\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\0229\n\ngrpc_po"
- + "rts\030\t \003(\0132 .google.cloud.aiplatform.v1.P"
- + "ortB\003\340A\005\022:\n\022deployment_timeout\030\n \001(\0132\031.g"
- + "oogle.protobuf.DurationB\003\340A\005\022\"\n\025shared_m"
- + "emory_size_mb\030\013 \001(\003B\003\340A\005\022=\n\rstartup_prob"
- + "e\030\014 \001(\0132!.google.cloud.aiplatform.v1.Pro"
- + "beB\003\340A\005\022<\n\014health_probe\030\r \001(\0132!.google.c"
- + "loud.aiplatform.v1.ProbeB\003\340A\005\"\036\n\004Port\022\026\n"
- + "\016container_port\030\003 \001(\005\"\223\002\n\017ModelSourceInf"
- + "o\022P\n\013source_type\030\001 \001(\0162;.google.cloud.ai"
- + "platform.v1.ModelSourceInfo.ModelSourceT"
- + "ype\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017ModelSourceType\022!\n"
- + "\035MODEL_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006AUTO"
- + "ML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014MODEL_GARD"
- + "EN\020\004\022\t\n\005GENIE\020\005\022\031\n\025CUSTOM_TEXT_EMBEDDING"
- + "\020\006\022\017\n\013MARKETPLACE\020\007\"\243\001\n\005Probe\022<\n\004exec\030\001 "
- + "\001(\0132,.google.cloud.aiplatform.v1.Probe.E"
- + "xecActionH\000\022\026\n\016period_seconds\030\002 \001(\005\022\027\n\017t"
- + "imeout_seconds\030\003 \001(\005\032\035\n\nExecAction\022\017\n\007co"
- + "mmand\030\001 \003(\tB\014\n\nprobe_typeB\310\001\n\036com.google"
- + ".cloud.aiplatform.v1B\nModelProtoP\001Z>clou"
- + "d.google.com/go/aiplatform/apiv1/aiplatf"
- + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat"
- + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G"
- + "oogle::Cloud::AIPlatform::V1b\006proto3"
+ + "\001(\tB\003\340A\003\022Q\n\021base_model_source\0302 \001(\01321.go"
+ + "ogle.cloud.aiplatform.v1.Model.BaseModel"
+ + "SourceB\003\340A\001\032\325\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\t"
+ + "B\003\340A\003\022b\n\023exportable_contents\030\002 \003(\0162@.goo"
+ + "gle.cloud.aiplatform.v1.Model.ExportForm"
+ + "at.ExportableContentB\003\340A\003\"P\n\021ExportableC"
+ + "ontent\022\"\n\036EXPORTABLE_CONTENT_UNSPECIFIED"
+ + "\020\000\022\014\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032\334\001\n\tDataStat"
+ + "s\022!\n\031training_data_items_count\030\001 \001(\003\022#\n\033"
+ + "validation_data_items_count\030\002 \001(\003\022\035\n\025tes"
+ + "t_data_items_count\030\003 \001(\003\022\"\n\032training_ann"
+ + "otations_count\030\004 \001(\003\022$\n\034validation_annot"
+ + "ations_count\030\005 \001(\003\022\036\n\026test_annotations_c"
+ + "ount\030\006 \001(\003\032K\n\021OriginalModelInfo\0226\n\005model"
+ + "\030\001 \001(\tB\'\340A\003\372A!\n\037aiplatform.googleapis.co"
+ + "m/Model\032\252\001\n\017BaseModelSource\022L\n\023model_gar"
+ + "den_source\030\001 \001(\0132-.google.cloud.aiplatfo"
+ + "rm.v1.ModelGardenSourceH\000\022?\n\014genie_sourc"
+ + "e\030\002 \001(\0132\'.google.cloud.aiplatform.v1.Gen"
+ + "ieSourceH\000B\010\n\006source\032-\n\013LabelsEntry\022\013\n\003k"
+ + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027Deployme"
+ + "ntResourcesType\022)\n%DEPLOYMENT_RESOURCES_"
+ + "TYPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCE"
+ + "S\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002\022\024\n\020SHARED_R"
+ + "ESOURCES\020\003:\\\352AY\n\037aiplatform.googleapis.c"
+ + "om/Model\0226projects/{project}/locations/{"
+ + "location}/models/{model}\"(\n\023LargeModelRe"
+ + "ference\022\021\n\004name\030\001 \001(\tB\003\340A\002\"3\n\021ModelGarde"
+ + "nSource\022\036\n\021public_model_name\030\001 \001(\tB\003\340A\002\""
+ + "*\n\013GenieSource\022\033\n\016base_model_uri\030\001 \001(\tB\003"
+ + "\340A\002\"{\n\017PredictSchemata\022 \n\023instance_schem"
+ + "a_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_ur"
+ + "i\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 "
+ + "\001(\tB\003\340A\005\"\223\004\n\022ModelContainerSpec\022\031\n\timage"
+ + "_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005"
+ + "\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132\".googl"
+ + "e.cloud.aiplatform.v1.EnvVarB\003\340A\005\0224\n\005por"
+ + "ts\030\005 \003(\0132 .google.cloud.aiplatform.v1.Po"
+ + "rtB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014h"
+ + "ealth_route\030\007 \001(\tB\003\340A\005\0229\n\ngrpc_ports\030\t \003"
+ + "(\0132 .google.cloud.aiplatform.v1.PortB\003\340A"
+ + "\005\022:\n\022deployment_timeout\030\n \001(\0132\031.google.p"
+ + "rotobuf.DurationB\003\340A\005\022\"\n\025shared_memory_s"
+ + "ize_mb\030\013 \001(\003B\003\340A\005\022=\n\rstartup_probe\030\014 \001(\013"
+ + "2!.google.cloud.aiplatform.v1.ProbeB\003\340A\005"
+ + "\022<\n\014health_probe\030\r \001(\0132!.google.cloud.ai"
+ + "platform.v1.ProbeB\003\340A\005\"\036\n\004Port\022\026\n\016contai"
+ + "ner_port\030\003 \001(\005\"\223\002\n\017ModelSourceInfo\022P\n\013so"
+ + "urce_type\030\001 \001(\0162;.google.cloud.aiplatfor"
+ + "m.v1.ModelSourceInfo.ModelSourceType\022\014\n\004"
+ + "copy\030\002 \001(\010\"\237\001\n\017ModelSourceType\022!\n\035MODEL_"
+ + "SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006AUTOML\020\001\022\n\n"
+ + "\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014MODEL_GARDEN\020\004\022\t\n"
+ + "\005GENIE\020\005\022\031\n\025CUSTOM_TEXT_EMBEDDING\020\006\022\017\n\013M"
+ + "ARKETPLACE\020\007\"\243\001\n\005Probe\022<\n\004exec\030\001 \001(\0132,.g"
+ + "oogle.cloud.aiplatform.v1.Probe.ExecActi"
+ + "onH\000\022\026\n\016period_seconds\030\002 \001(\005\022\027\n\017timeout_"
+ + "seconds\030\003 \001(\005\032\035\n\nExecAction\022\017\n\007command\030\001"
+ + " \003(\tB\014\n\nprobe_typeB\310\001\n\036com.google.cloud."
+ + "aiplatform.v1B\nModelProtoP\001Z>cloud.googl"
+ + "e.com/go/aiplatform/apiv1/aiplatformpb;a"
+ + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1"
+ + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::"
+ + "Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -242,6 +263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ModelSourceInfo",
"OriginalModelInfo",
"MetadataArtifact",
+ "BaseModelSource",
});
internal_static_google_cloud_aiplatform_v1_Model_ExportFormat_descriptor =
internal_static_google_cloud_aiplatform_v1_Model_descriptor.getNestedTypes().get(0);
@@ -272,8 +294,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Model",
});
- internal_static_google_cloud_aiplatform_v1_Model_LabelsEntry_descriptor =
+ internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor =
internal_static_google_cloud_aiplatform_v1_Model_descriptor.getNestedTypes().get(3);
+ internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_Model_BaseModelSource_descriptor,
+ new java.lang.String[] {
+ "ModelGardenSource", "GenieSource", "Source",
+ });
+ internal_static_google_cloud_aiplatform_v1_Model_LabelsEntry_descriptor =
+ internal_static_google_cloud_aiplatform_v1_Model_descriptor.getNestedTypes().get(4);
internal_static_google_cloud_aiplatform_v1_Model_LabelsEntry_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_Model_LabelsEntry_descriptor,
@@ -288,8 +318,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Name",
});
- internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor =
+ internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor =
getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_aiplatform_v1_ModelGardenSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_ModelGardenSource_descriptor,
+ new java.lang.String[] {
+ "PublicModelName",
+ });
+ internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_aiplatform_v1_GenieSource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_GenieSource_descriptor,
+ new java.lang.String[] {
+ "BaseModelUri",
+ });
+ internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor =
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_cloud_aiplatform_v1_PredictSchemata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor,
@@ -297,7 +343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"InstanceSchemaUri", "ParametersSchemaUri", "PredictionSchemaUri",
});
internal_static_google_cloud_aiplatform_v1_ModelContainerSpec_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_aiplatform_v1_ModelContainerSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ModelContainerSpec_descriptor,
@@ -316,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"HealthProbe",
});
internal_static_google_cloud_aiplatform_v1_Port_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_aiplatform_v1_Port_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_Port_descriptor,
@@ -324,7 +370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ContainerPort",
});
internal_static_google_cloud_aiplatform_v1_ModelSourceInfo_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_aiplatform_v1_ModelSourceInfo_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ModelSourceInfo_descriptor,
@@ -332,7 +378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"SourceType", "Copy",
});
internal_static_google_cloud_aiplatform_v1_Probe_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_aiplatform_v1_Probe_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_Probe_descriptor,
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java
index b3cbbf87e2a8..745931ed038f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java
@@ -28,6 +28,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_CreateTrainingPipelineRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -72,10 +76,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -95,106 +115,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\0322google/cloud/aiplatform/v1/traini"
+ "ng_pipeline.proto\032#google/longrunning/op"
+ "erations.proto\032\033google/protobuf/empty.pr"
- + "oto\032 google/protobuf/field_mask.proto\"\250\001"
- + "\n\035CreateTrainingPipelineRequest\0229\n\006paren"
- + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co"
- + "m/Location\022L\n\021training_pipeline\030\002 \001(\0132,."
- + "google.cloud.aiplatform.v1.TrainingPipel"
- + "ineB\003\340A\002\"^\n\032GetTrainingPipelineRequest\022@"
- + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatform.googlea"
- + "pis.com/TrainingPipeline\"\277\001\n\034ListTrainin"
- + "gPipelinesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A"
- + "#\n!locations.googleapis.com/Location\022\016\n\006"
- + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_"
- + "token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google."
- + "protobuf.FieldMask\"\202\001\n\035ListTrainingPipel"
- + "inesResponse\022H\n\022training_pipelines\030\001 \003(\013"
- + "2,.google.cloud.aiplatform.v1.TrainingPi"
- + "peline\022\027\n\017next_page_token\030\002 \001(\t\"a\n\035Delet"
- + "eTrainingPipelineRequest\022@\n\004name\030\001 \001(\tB2"
- + "\340A\002\372A,\n*aiplatform.googleapis.com/Traini"
- + "ngPipeline\"a\n\035CancelTrainingPipelineRequ"
- + "est\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatform.go"
- + "ogleapis.com/TrainingPipeline\"\262\001\n\030Create"
- + "PipelineJobRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372"
- + "A#\n!locations.googleapis.com/Location\022B\n"
- + "\014pipeline_job\030\002 \001(\0132\'.google.cloud.aipla"
- + "tform.v1.PipelineJobB\003\340A\002\022\027\n\017pipeline_jo"
- + "b_id\030\003 \001(\t\"T\n\025GetPipelineJobRequest\022;\n\004n"
- + "ame\030\001 \001(\tB-\340A\002\372A\'\n%aiplatform.googleapis"
- + ".com/PipelineJob\"\314\001\n\027ListPipelineJobsReq"
- + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations."
- + "googleapis.com/Location\022\016\n\006filter\030\002 \001(\t\022"
- + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020"
- + "\n\010order_by\030\006 \001(\t\022-\n\tread_mask\030\007 \001(\0132\032.go"
- + "ogle.protobuf.FieldMask\"s\n\030ListPipelineJ"
- + "obsResponse\022>\n\rpipeline_jobs\030\001 \003(\0132\'.goo"
- + "gle.cloud.aiplatform.v1.PipelineJob\022\027\n\017n"
- + "ext_page_token\030\002 \001(\t\"W\n\030DeletePipelineJo"
- + "bRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aiplatfo"
- + "rm.googleapis.com/PipelineJob\"W\n\030CancelP"
- + "ipelineJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n"
- + "%aiplatform.googleapis.com/PipelineJob2\374"
- + "\020\n\017PipelineService\022\356\001\n\026CreateTrainingPip"
- + "eline\0229.google.cloud.aiplatform.v1.Creat"
- + "eTrainingPipelineRequest\032,.google.cloud."
- + "aiplatform.v1.TrainingPipeline\"k\332A\030paren"
- + "t,training_pipeline\202\323\344\223\002J\"5/v1/{parent=p"
- + "rojects/*/locations/*}/trainingPipelines"
- + ":\021training_pipeline\022\301\001\n\023GetTrainingPipel"
- + "ine\0226.google.cloud.aiplatform.v1.GetTrai"
- + "ningPipelineRequest\032,.google.cloud.aipla"
- + "tform.v1.TrainingPipeline\"D\332A\004name\202\323\344\223\0027"
- + "\0225/v1/{name=projects/*/locations/*/train"
- + "ingPipelines/*}\022\324\001\n\025ListTrainingPipeline"
- + "s\0228.google.cloud.aiplatform.v1.ListTrain"
- + "ingPipelinesRequest\0329.google.cloud.aipla"
- + "tform.v1.ListTrainingPipelinesResponse\"F"
- + "\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*/"
- + "locations/*}/trainingPipelines\022\353\001\n\026Delet"
- + "eTrainingPipeline\0229.google.cloud.aiplatf"
- + "orm.v1.DeleteTrainingPipelineRequest\032\035.g"
- + "oogle.longrunning.Operation\"w\312A0\n\025google"
- + ".protobuf.Empty\022\027DeleteOperationMetadata"
- + "\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/loca"
- + "tions/*/trainingPipelines/*}\022\273\001\n\026CancelT"
- + "rainingPipeline\0229.google.cloud.aiplatfor"
- + "m.v1.CancelTrainingPipelineRequest\032\026.goo"
- + "gle.protobuf.Empty\"N\332A\004name\202\323\344\223\002A\"cloud."
- + "google.com/go/aiplatform/apiv1/aiplatfor"
- + "mpb;aiplatformpb\252\002\032Google.Cloud.AIPlatfo"
- + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goo"
- + "gle::Cloud::AIPlatform::V1b\006proto3"
+ + "oto\032 google/protobuf/field_mask.proto\"z\n"
+ + "(BatchCancelPipelineJobsOperationMetadat"
+ + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo"
+ + "ud.aiplatform.v1.GenericOperationMetadat"
+ + "a\"\250\001\n\035CreateTrainingPipelineRequest\0229\n\006p"
+ + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi"
+ + "s.com/Location\022L\n\021training_pipeline\030\002 \001("
+ + "\0132,.google.cloud.aiplatform.v1.TrainingP"
+ + "ipelineB\003\340A\002\"^\n\032GetTrainingPipelineReque"
+ + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatform.goo"
+ + "gleapis.com/TrainingPipeline\"\277\001\n\034ListTra"
+ + "iningPipelinesRequest\0229\n\006parent\030\001 \001(\tB)\340"
+ + "A\002\372A#\n!locations.googleapis.com/Location"
+ + "\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np"
+ + "age_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.goo"
+ + "gle.protobuf.FieldMask\"\202\001\n\035ListTrainingP"
+ + "ipelinesResponse\022H\n\022training_pipelines\030\001"
+ + " \003(\0132,.google.cloud.aiplatform.v1.Traini"
+ + "ngPipeline\022\027\n\017next_page_token\030\002 \001(\t\"a\n\035D"
+ + "eleteTrainingPipelineRequest\022@\n\004name\030\001 \001"
+ + "(\tB2\340A\002\372A,\n*aiplatform.googleapis.com/Tr"
+ + "ainingPipeline\"a\n\035CancelTrainingPipeline"
+ + "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aiplatfor"
+ + "m.googleapis.com/TrainingPipeline\"\262\001\n\030Cr"
+ + "eatePipelineJobRequest\0229\n\006parent\030\001 \001(\tB)"
+ + "\340A\002\372A#\n!locations.googleapis.com/Locatio"
+ + "n\022B\n\014pipeline_job\030\002 \001(\0132\'.google.cloud.a"
+ + "iplatform.v1.PipelineJobB\003\340A\002\022\027\n\017pipelin"
+ + "e_job_id\030\003 \001(\t\"T\n\025GetPipelineJobRequest\022"
+ + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aiplatform.google"
+ + "apis.com/PipelineJob\"\314\001\n\027ListPipelineJob"
+ + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati"
+ + "ons.googleapis.com/Location\022\016\n\006filter\030\002 "
+ + "\001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001"
+ + "(\t\022\020\n\010order_by\030\006 \001(\t\022-\n\tread_mask\030\007 \001(\0132"
+ + "\032.google.protobuf.FieldMask\"s\n\030ListPipel"
+ + "ineJobsResponse\022>\n\rpipeline_jobs\030\001 \003(\0132\'"
+ + ".google.cloud.aiplatform.v1.PipelineJob\022"
+ + "\027\n\017next_page_token\030\002 \001(\t\"W\n\030DeletePipeli"
+ + "neJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aipl"
+ + "atform.googleapis.com/PipelineJob\"\235\001\n\036Ba"
+ + "tchDeletePipelineJobsRequest\022=\n\006parent\030\001"
+ + " \001(\tB-\340A\002\372A\'\022%aiplatform.googleapis.com/"
+ + "PipelineJob\022<\n\005names\030\002 \003(\tB-\340A\002\372A\'\n%aipl"
+ + "atform.googleapis.com/PipelineJob\"a\n\037Bat"
+ + "chDeletePipelineJobsResponse\022>\n\rpipeline"
+ + "_jobs\030\001 \003(\0132\'.google.cloud.aiplatform.v1"
+ + ".PipelineJob\"W\n\030CancelPipelineJobRequest"
+ + "\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aiplatform.googl"
+ + "eapis.com/PipelineJob\"\235\001\n\036BatchCancelPip"
+ + "elineJobsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'"
+ + "\022%aiplatform.googleapis.com/PipelineJob\022"
+ + "<\n\005names\030\002 \003(\tB-\340A\002\372A\'\n%aiplatform.googl"
+ + "eapis.com/PipelineJob\"a\n\037BatchCancelPipe"
+ + "lineJobsResponse\022>\n\rpipeline_jobs\030\001 \003(\0132"
+ + "\'.google.cloud.aiplatform.v1.PipelineJob"
+ + "2\247\025\n\017PipelineService\022\356\001\n\026CreateTrainingP"
+ + "ipeline\0229.google.cloud.aiplatform.v1.Cre"
+ + "ateTrainingPipelineRequest\032,.google.clou"
+ + "d.aiplatform.v1.TrainingPipeline\"k\332A\030par"
+ + "ent,training_pipeline\202\323\344\223\002J\"5/v1/{parent"
+ + "=projects/*/locations/*}/trainingPipelin"
+ + "es:\021training_pipeline\022\301\001\n\023GetTrainingPip"
+ + "eline\0226.google.cloud.aiplatform.v1.GetTr"
+ + "ainingPipelineRequest\032,.google.cloud.aip"
+ + "latform.v1.TrainingPipeline\"D\332A\004name\202\323\344\223"
+ + "\0027\0225/v1/{name=projects/*/locations/*/tra"
+ + "iningPipelines/*}\022\324\001\n\025ListTrainingPipeli"
+ + "nes\0228.google.cloud.aiplatform.v1.ListTra"
+ + "iningPipelinesRequest\0329.google.cloud.aip"
+ + "latform.v1.ListTrainingPipelinesResponse"
+ + "\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/"
+ + "*/locations/*}/trainingPipelines\022\353\001\n\026Del"
+ + "eteTrainingPipeline\0229.google.cloud.aipla"
+ + "tform.v1.DeleteTrainingPipelineRequest\032\035"
+ + ".google.longrunning.Operation\"w\312A0\n\025goog"
+ + "le.protobuf.Empty\022\027DeleteOperationMetada"
+ + "ta\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/lo"
+ + "cations/*/trainingPipelines/*}\022\273\001\n\026Cance"
+ + "lTrainingPipeline\0229.google.cloud.aiplatf"
+ + "orm.v1.CancelTrainingPipelineRequest\032\026.g"
+ + "oogle.protobuf.Empty\"N\332A\004name\202\323\344\223\002A\"cloud.goo"
+ + "gle.com/go/aiplatform/apiv1/aiplatformpb"
+ + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform."
+ + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google"
+ + "::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -211,8 +261,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.EmptyProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
});
- internal_static_google_cloud_aiplatform_v1_CreateTrainingPipelineRequest_descriptor =
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_descriptor =
getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_descriptor,
+ new java.lang.String[] {
+ "GenericMetadata",
+ });
+ internal_static_google_cloud_aiplatform_v1_CreateTrainingPipelineRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
internal_static_google_cloud_aiplatform_v1_CreateTrainingPipelineRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_CreateTrainingPipelineRequest_descriptor,
@@ -220,7 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "TrainingPipeline",
});
internal_static_google_cloud_aiplatform_v1_GetTrainingPipelineRequest_descriptor =
- getDescriptor().getMessageTypes().get(1);
+ getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_aiplatform_v1_GetTrainingPipelineRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GetTrainingPipelineRequest_descriptor,
@@ -228,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesRequest_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(3);
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesRequest_descriptor,
@@ -236,7 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Filter", "PageSize", "PageToken", "ReadMask",
});
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesResponse_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ListTrainingPipelinesResponse_descriptor,
@@ -244,7 +302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TrainingPipelines", "NextPageToken",
});
internal_static_google_cloud_aiplatform_v1_DeleteTrainingPipelineRequest_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_aiplatform_v1_DeleteTrainingPipelineRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_DeleteTrainingPipelineRequest_descriptor,
@@ -252,7 +310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_aiplatform_v1_CancelTrainingPipelineRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_aiplatform_v1_CancelTrainingPipelineRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_CancelTrainingPipelineRequest_descriptor,
@@ -260,7 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor,
@@ -268,7 +326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PipelineJob", "PipelineJobId",
});
internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor,
@@ -276,7 +334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor,
@@ -284,7 +342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask",
});
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor,
@@ -292,21 +350,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PipelineJobs", "NextPageToken",
});
internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor,
new java.lang.String[] {
"Name",
});
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Names",
+ });
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_descriptor,
+ new java.lang.String[] {
+ "PipelineJobs",
+ });
internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor,
new java.lang.String[] {
"Name",
});
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Names",
+ });
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_descriptor,
+ new java.lang.String[] {
+ "PipelineJobs",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
index 2f9fa1e3682e..4df332297e08 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
@@ -325,7 +325,8 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Experimental launch stage.
+ * Used to indicate the PublisherModel is at Experimental launch stage,
+ * available to a small set of customers.
*
*
* EXPERIMENTAL = 1;
@@ -335,7 +336,10 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Private Preview launch stage.
+ * Used to indicate the PublisherModel is at Private Preview launch stage,
+ * only available to a small set of customers, although a larger set of
+ * customers than an Experimental launch. Previews are the first launch
+ * stage used to get feedback from customers.
*
*
* PRIVATE_PREVIEW = 2;
@@ -345,7 +349,9 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Public Preview launch stage.
+ * Used to indicate the PublisherModel is at Public Preview launch stage,
+ * available to all customers, although not supported for production
+ * workloads.
*
*
* PUBLIC_PREVIEW = 3;
@@ -355,7 +361,8 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at GA launch stage.
+ * Used to indicate the PublisherModel is at GA launch stage, available to
+ * all customers and ready for production workload.
*
*
* GA = 4;
@@ -378,7 +385,8 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Experimental launch stage.
+ * Used to indicate the PublisherModel is at Experimental launch stage,
+ * available to a small set of customers.
*
*
* EXPERIMENTAL = 1;
@@ -388,7 +396,10 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Private Preview launch stage.
+ * Used to indicate the PublisherModel is at Private Preview launch stage,
+ * only available to a small set of customers, although a larger set of
+ * customers than an Experimental launch. Previews are the first launch
+ * stage used to get feedback from customers.
*
*
* PRIVATE_PREVIEW = 2;
@@ -398,7 +409,9 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at Public Preview launch stage.
+ * Used to indicate the PublisherModel is at Public Preview launch stage,
+ * available to all customers, although not supported for production
+ * workloads.
*
*
* PUBLIC_PREVIEW = 3;
@@ -408,7 +421,8 @@ public enum LaunchStage implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Used to indicate the PublisherModel is at GA launch stage.
+ * Used to indicate the PublisherModel is at GA launch stage, available to
+ * all customers and ready for production workload.
*
*
* GA = 4;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java
new file mode 100644
index 000000000000..6205433429f3
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java
@@ -0,0 +1,916 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/tool.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Defines a retrieval tool that model can call to access external knowledge.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Retrieval}
+ */
+public final class Retrieval extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Retrieval)
+ RetrievalOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Retrieval.newBuilder() to construct.
+ private Retrieval(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Retrieval() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Retrieval();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Retrieval.class,
+ com.google.cloud.aiplatform.v1.Retrieval.Builder.class);
+ }
+
+ private int sourceCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object source_;
+
+ public enum SourceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ VERTEX_AI_SEARCH(2),
+ SOURCE_NOT_SET(0);
+ private final int value;
+
+ private SourceCase(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.
+ */
+ @java.lang.Deprecated
+ public static SourceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceCase forNumber(int value) {
+ switch (value) {
+ case 2:
+ return VERTEX_AI_SEARCH;
+ case 0:
+ return SOURCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public static final int VERTEX_AI_SEARCH_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return Whether the vertexAiSearch field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexAiSearch() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return The vertexAiSearch.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexAISearch getVertexAiSearch() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.VertexAISearch) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchOrBuilder() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.VertexAISearch) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ }
+
+ public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 3;
+ private boolean disableAttribution_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ @java.lang.Override
+ public boolean getDisableAttribution() {
+ return disableAttribution_;
+ }
+
+ 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 (sourceCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.aiplatform.v1.VertexAISearch) source_);
+ }
+ if (disableAttribution_ != false) {
+ output.writeBool(3, disableAttribution_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (sourceCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.aiplatform.v1.VertexAISearch) source_);
+ }
+ if (disableAttribution_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableAttribution_);
+ }
+ 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.aiplatform.v1.Retrieval)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.Retrieval other = (com.google.cloud.aiplatform.v1.Retrieval) obj;
+
+ if (getDisableAttribution() != other.getDisableAttribution()) return false;
+ if (!getSourceCase().equals(other.getSourceCase())) return false;
+ switch (sourceCase_) {
+ case 2:
+ if (!getVertexAiSearch().equals(other.getVertexAiSearch())) 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) + DISABLE_ATTRIBUTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAttribution());
+ switch (sourceCase_) {
+ case 2:
+ hash = (37 * hash) + VERTEX_AI_SEARCH_FIELD_NUMBER;
+ hash = (53 * hash) + getVertexAiSearch().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval 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.aiplatform.v1.Retrieval parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval 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.aiplatform.v1.Retrieval parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval 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.aiplatform.v1.Retrieval parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval 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.aiplatform.v1.Retrieval parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval 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.aiplatform.v1.Retrieval 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;
+ }
+ /**
+ *
+ *
+ *
+ * Defines a retrieval tool that model can call to access external knowledge.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Retrieval}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Retrieval)
+ com.google.cloud.aiplatform.v1.RetrievalOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Retrieval.class,
+ com.google.cloud.aiplatform.v1.Retrieval.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.Retrieval.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (vertexAiSearchBuilder_ != null) {
+ vertexAiSearchBuilder_.clear();
+ }
+ disableAttribution_ = false;
+ sourceCase_ = 0;
+ source_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ToolProto
+ .internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Retrieval getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Retrieval build() {
+ com.google.cloud.aiplatform.v1.Retrieval result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Retrieval buildPartial() {
+ com.google.cloud.aiplatform.v1.Retrieval result =
+ new com.google.cloud.aiplatform.v1.Retrieval(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.Retrieval result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.disableAttribution_ = disableAttribution_;
+ }
+ }
+
+ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Retrieval result) {
+ result.sourceCase_ = sourceCase_;
+ result.source_ = this.source_;
+ if (sourceCase_ == 2 && vertexAiSearchBuilder_ != null) {
+ result.source_ = vertexAiSearchBuilder_.build();
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.Retrieval) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.Retrieval) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Retrieval other) {
+ if (other == com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance()) return this;
+ if (other.getDisableAttribution() != false) {
+ setDisableAttribution(other.getDisableAttribution());
+ }
+ switch (other.getSourceCase()) {
+ case VERTEX_AI_SEARCH:
+ {
+ mergeVertexAiSearch(other.getVertexAiSearch());
+ break;
+ }
+ case SOURCE_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ input.readMessage(getVertexAiSearchFieldBuilder().getBuilder(), extensionRegistry);
+ sourceCase_ = 2;
+ break;
+ } // case 18
+ case 24:
+ {
+ disableAttribution_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 24
+ 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
+ return this;
+ }
+
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public Builder clearSource() {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VertexAISearch,
+ com.google.cloud.aiplatform.v1.VertexAISearch.Builder,
+ com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder>
+ vertexAiSearchBuilder_;
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return Whether the vertexAiSearch field is set.
+ */
+ @java.lang.Override
+ public boolean hasVertexAiSearch() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return The vertexAiSearch.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexAISearch getVertexAiSearch() {
+ if (vertexAiSearchBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.VertexAISearch) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 2) {
+ return vertexAiSearchBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ public Builder setVertexAiSearch(com.google.cloud.aiplatform.v1.VertexAISearch value) {
+ if (vertexAiSearchBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ vertexAiSearchBuilder_.setMessage(value);
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ public Builder setVertexAiSearch(
+ com.google.cloud.aiplatform.v1.VertexAISearch.Builder builderForValue) {
+ if (vertexAiSearchBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ vertexAiSearchBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ public Builder mergeVertexAiSearch(com.google.cloud.aiplatform.v1.VertexAISearch value) {
+ if (vertexAiSearchBuilder_ == null) {
+ if (sourceCase_ == 2
+ && source_ != com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.aiplatform.v1.VertexAISearch.newBuilder(
+ (com.google.cloud.aiplatform.v1.VertexAISearch) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 2) {
+ vertexAiSearchBuilder_.mergeFrom(value);
+ } else {
+ vertexAiSearchBuilder_.setMessage(value);
+ }
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ public Builder clearVertexAiSearch() {
+ if (vertexAiSearchBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ vertexAiSearchBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ public com.google.cloud.aiplatform.v1.VertexAISearch.Builder getVertexAiSearchBuilder() {
+ return getVertexAiSearchFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchOrBuilder() {
+ if ((sourceCase_ == 2) && (vertexAiSearchBuilder_ != null)) {
+ return vertexAiSearchBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.aiplatform.v1.VertexAISearch) source_;
+ }
+ return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VertexAISearch,
+ com.google.cloud.aiplatform.v1.VertexAISearch.Builder,
+ com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder>
+ getVertexAiSearchFieldBuilder() {
+ if (vertexAiSearchBuilder_ == null) {
+ if (!(sourceCase_ == 2)) {
+ source_ = com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance();
+ }
+ vertexAiSearchBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.VertexAISearch,
+ com.google.cloud.aiplatform.v1.VertexAISearch.Builder,
+ com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder>(
+ (com.google.cloud.aiplatform.v1.VertexAISearch) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 2;
+ onChanged();
+ return vertexAiSearchBuilder_;
+ }
+
+ private boolean disableAttribution_;
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ @java.lang.Override
+ public boolean getDisableAttribution() {
+ return disableAttribution_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The disableAttribution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisableAttribution(boolean value) {
+
+ disableAttribution_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisableAttribution() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ disableAttribution_ = false;
+ 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.aiplatform.v1.Retrieval)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Retrieval)
+ private static final com.google.cloud.aiplatform.v1.Retrieval DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Retrieval();
+ }
+
+ public static com.google.cloud.aiplatform.v1.Retrieval getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Retrieval parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Retrieval getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java
new file mode 100644
index 000000000000..b3fed284632f
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/tool.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface RetrievalOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Retrieval)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return Whether the vertexAiSearch field is set.
+ */
+ boolean hasVertexAiSearch();
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ *
+ * @return The vertexAiSearch.
+ */
+ com.google.cloud.aiplatform.v1.VertexAISearch getVertexAiSearch();
+ /**
+ *
+ *
+ *
+ * Set to use data source powered by Vertex AI Search.
+ *
+ *
+ * .google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;
+ */
+ com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Disable using the result from this tool in detecting grounding
+ * attribution. This does not affect how the result is given to the model for
+ * generation.
+ *
+ *
+ * bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The disableAttribution.
+ */
+ boolean getDisableAttribution();
+
+ com.google.cloud.aiplatform.v1.Retrieval.SourceCase getSourceCase();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRating.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRating.java
index 3c68dee96196..fa822f07a92a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRating.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRating.java
@@ -41,6 +41,7 @@ private SafetyRating(com.google.protobuf.GeneratedMessageV3.Builder> builder)
private SafetyRating() {
category_ = 0;
probability_ = 0;
+ severity_ = 0;
}
@java.lang.Override
@@ -267,6 +268,207 @@ private HarmProbability(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.SafetyRating.HarmProbability)
}
+ /**
+ *
+ *
+ *
+ * Harm severity levels.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.SafetyRating.HarmSeverity}
+ */
+ public enum HarmSeverity implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Harm severity unspecified.
+ *
+ *
+ * HARM_SEVERITY_UNSPECIFIED = 0;
+ */
+ HARM_SEVERITY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Negligible level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_NEGLIGIBLE = 1;
+ */
+ HARM_SEVERITY_NEGLIGIBLE(1),
+ /**
+ *
+ *
+ *
+ * Low level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_LOW = 2;
+ */
+ HARM_SEVERITY_LOW(2),
+ /**
+ *
+ *
+ *
+ * Medium level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_MEDIUM = 3;
+ */
+ HARM_SEVERITY_MEDIUM(3),
+ /**
+ *
+ *
+ *
+ * High level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_HIGH = 4;
+ */
+ HARM_SEVERITY_HIGH(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Harm severity unspecified.
+ *
+ *
+ * HARM_SEVERITY_UNSPECIFIED = 0;
+ */
+ public static final int HARM_SEVERITY_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Negligible level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_NEGLIGIBLE = 1;
+ */
+ public static final int HARM_SEVERITY_NEGLIGIBLE_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Low level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_LOW = 2;
+ */
+ public static final int HARM_SEVERITY_LOW_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Medium level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_MEDIUM = 3;
+ */
+ public static final int HARM_SEVERITY_MEDIUM_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * High level of harm severity.
+ *
+ *
+ * HARM_SEVERITY_HIGH = 4;
+ */
+ public static final int HARM_SEVERITY_HIGH_VALUE = 4;
+
+ 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 HarmSeverity 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 HarmSeverity forNumber(int value) {
+ switch (value) {
+ case 0:
+ return HARM_SEVERITY_UNSPECIFIED;
+ case 1:
+ return HARM_SEVERITY_NEGLIGIBLE;
+ case 2:
+ return HARM_SEVERITY_LOW;
+ case 3:
+ return HARM_SEVERITY_MEDIUM;
+ case 4:
+ return HARM_SEVERITY_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public HarmSeverity findValueByNumber(int number) {
+ return HarmSeverity.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.SafetyRating.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final HarmSeverity[] VALUES = values();
+
+ public static HarmSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private HarmSeverity(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.SafetyRating.HarmSeverity)
+ }
+
public static final int CATEGORY_FIELD_NUMBER = 1;
private int category_ = 0;
/**
@@ -347,6 +549,83 @@ public com.google.cloud.aiplatform.v1.SafetyRating.HarmProbability getProbabilit
: result;
}
+ public static final int PROBABILITY_SCORE_FIELD_NUMBER = 5;
+ private float probabilityScore_ = 0F;
+ /**
+ *
+ *
+ *
+ * Output only. Harm probability score.
+ *
+ *
+ * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The probabilityScore.
+ */
+ @java.lang.Override
+ public float getProbabilityScore() {
+ return probabilityScore_;
+ }
+
+ public static final int SEVERITY_FIELD_NUMBER = 6;
+ private int severity_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ @java.lang.Override
+ public int getSeverityValue() {
+ return severity_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The severity.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity getSeverity() {
+ com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity result =
+ com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.forNumber(severity_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int SEVERITY_SCORE_FIELD_NUMBER = 7;
+ private float severityScore_ = 0F;
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity score.
+ *
+ *
+ * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The severityScore.
+ */
+ @java.lang.Override
+ public float getSeverityScore() {
+ return severityScore_;
+ }
+
public static final int BLOCKED_FIELD_NUMBER = 3;
private boolean blocked_ = false;
/**
@@ -392,6 +671,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (blocked_ != false) {
output.writeBool(3, blocked_);
}
+ if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) {
+ output.writeFloat(5, probabilityScore_);
+ }
+ if (severity_
+ != com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.HARM_SEVERITY_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(6, severity_);
+ }
+ if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) {
+ output.writeFloat(7, severityScore_);
+ }
getUnknownFields().writeTo(output);
}
@@ -413,6 +703,17 @@ public int getSerializedSize() {
if (blocked_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, blocked_);
}
+ if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, probabilityScore_);
+ }
+ if (severity_
+ != com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.HARM_SEVERITY_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, severity_);
+ }
+ if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, severityScore_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -431,6 +732,11 @@ public boolean equals(final java.lang.Object obj) {
if (category_ != other.category_) return false;
if (probability_ != other.probability_) return false;
+ if (java.lang.Float.floatToIntBits(getProbabilityScore())
+ != java.lang.Float.floatToIntBits(other.getProbabilityScore())) return false;
+ if (severity_ != other.severity_) return false;
+ if (java.lang.Float.floatToIntBits(getSeverityScore())
+ != java.lang.Float.floatToIntBits(other.getSeverityScore())) return false;
if (getBlocked() != other.getBlocked()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -447,6 +753,12 @@ public int hashCode() {
hash = (53 * hash) + category_;
hash = (37 * hash) + PROBABILITY_FIELD_NUMBER;
hash = (53 * hash) + probability_;
+ hash = (37 * hash) + PROBABILITY_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getProbabilityScore());
+ hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
+ hash = (53 * hash) + severity_;
+ hash = (37 * hash) + SEVERITY_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getSeverityScore());
hash = (37 * hash) + BLOCKED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlocked());
hash = (29 * hash) + getUnknownFields().hashCode();
@@ -590,6 +902,9 @@ public Builder clear() {
bitField0_ = 0;
category_ = 0;
probability_ = 0;
+ probabilityScore_ = 0F;
+ severity_ = 0;
+ severityScore_ = 0F;
blocked_ = false;
return this;
}
@@ -634,6 +949,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.SafetyRating result) {
result.probability_ = probability_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.probabilityScore_ = probabilityScore_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.severity_ = severity_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.severityScore_ = severityScore_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
result.blocked_ = blocked_;
}
}
@@ -689,6 +1013,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SafetyRating other) {
if (other.probability_ != 0) {
setProbabilityValue(other.getProbabilityValue());
}
+ if (other.getProbabilityScore() != 0F) {
+ setProbabilityScore(other.getProbabilityScore());
+ }
+ if (other.severity_ != 0) {
+ setSeverityValue(other.getSeverityValue());
+ }
+ if (other.getSeverityScore() != 0F) {
+ setSeverityScore(other.getSeverityScore());
+ }
if (other.getBlocked() != false) {
setBlocked(other.getBlocked());
}
@@ -733,9 +1066,27 @@ public Builder mergeFrom(
case 24:
{
blocked_ = input.readBool();
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000020;
break;
} // case 24
+ case 45:
+ {
+ probabilityScore_ = input.readFloat();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 45
+ case 48:
+ {
+ severity_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 48
+ case 61:
+ {
+ severityScore_ = input.readFloat();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 61
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -958,6 +1309,214 @@ public Builder clearProbability() {
return this;
}
+ private float probabilityScore_;
+ /**
+ *
+ *
+ *
+ * Output only. Harm probability score.
+ *
+ *
+ * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The probabilityScore.
+ */
+ @java.lang.Override
+ public float getProbabilityScore() {
+ return probabilityScore_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm probability score.
+ *
+ *
+ * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The probabilityScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProbabilityScore(float value) {
+
+ probabilityScore_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm probability score.
+ *
+ *
+ * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProbabilityScore() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ probabilityScore_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private int severity_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ @java.lang.Override
+ public int getSeverityValue() {
+ return severity_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverityValue(int value) {
+ severity_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The severity.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity getSeverity() {
+ com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity result =
+ com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.forNumber(severity_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The severity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverity(com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ severity_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ severity_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float severityScore_;
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity score.
+ *
+ *
+ * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The severityScore.
+ */
+ @java.lang.Override
+ public float getSeverityScore() {
+ return severityScore_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity score.
+ *
+ *
+ * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The severityScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSeverityScore(float value) {
+
+ severityScore_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity score.
+ *
+ *
+ * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSeverityScore() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ severityScore_ = 0F;
+ onChanged();
+ return this;
+ }
+
private boolean blocked_;
/**
*
@@ -991,7 +1550,7 @@ public boolean getBlocked() {
public Builder setBlocked(boolean value) {
blocked_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -1008,7 +1567,7 @@ public Builder setBlocked(boolean value) {
* @return This builder for chaining.
*/
public Builder clearBlocked() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000020);
blocked_ = false;
onChanged();
return this;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRatingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRatingOrBuilder.java
index 4034c05b9ba1..f8beab6cb38b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRatingOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SafetyRatingOrBuilder.java
@@ -82,6 +82,61 @@ public interface SafetyRatingOrBuilder
*/
com.google.cloud.aiplatform.v1.SafetyRating.HarmProbability getProbability();
+ /**
+ *
+ *
+ *
+ * Output only. Harm probability score.
+ *
+ *
+ * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The probabilityScore.
+ */
+ float getProbabilityScore();
+
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ int getSeverityValue();
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity levels in the content.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The severity.
+ */
+ com.google.cloud.aiplatform.v1.SafetyRating.HarmSeverity getSeverity();
+
+ /**
+ *
+ *
+ *
+ * Output only. Harm severity score.
+ *
+ *
+ * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The severityScore.
+ */
+ float getSeverityScore();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java
new file mode 100644
index 000000000000..66c3713a79d6
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Segment.java
@@ -0,0 +1,727 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Segment of the content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Segment}
+ */
+public final class Segment extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Segment)
+ SegmentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Segment.newBuilder() to construct.
+ private Segment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Segment() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Segment();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Segment.class,
+ com.google.cloud.aiplatform.v1.Segment.Builder.class);
+ }
+
+ public static final int PART_INDEX_FIELD_NUMBER = 1;
+ private int partIndex_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. The index of a Part object within its parent Content object.
+ *
+ *
+ * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The partIndex.
+ */
+ @java.lang.Override
+ public int getPartIndex() {
+ return partIndex_;
+ }
+
+ public static final int START_INDEX_FIELD_NUMBER = 2;
+ private int startIndex_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. Start index in the given Part, measured in bytes. Offset from
+ * the start of the Part, inclusive, starting at zero.
+ *
+ *
+ * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The startIndex.
+ */
+ @java.lang.Override
+ public int getStartIndex() {
+ return startIndex_;
+ }
+
+ public static final int END_INDEX_FIELD_NUMBER = 3;
+ private int endIndex_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. End index in the given Part, measured in bytes. Offset from
+ * the start of the Part, exclusive, starting at zero.
+ *
+ *
+ * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The endIndex.
+ */
+ @java.lang.Override
+ public int getEndIndex() {
+ return endIndex_;
+ }
+
+ 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 (partIndex_ != 0) {
+ output.writeInt32(1, partIndex_);
+ }
+ if (startIndex_ != 0) {
+ output.writeInt32(2, startIndex_);
+ }
+ if (endIndex_ != 0) {
+ output.writeInt32(3, endIndex_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (partIndex_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_);
+ }
+ if (startIndex_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_);
+ }
+ if (endIndex_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_);
+ }
+ 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.aiplatform.v1.Segment)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.Segment other = (com.google.cloud.aiplatform.v1.Segment) obj;
+
+ if (getPartIndex() != other.getPartIndex()) return false;
+ if (getStartIndex() != other.getStartIndex()) return false;
+ if (getEndIndex() != other.getEndIndex()) 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) + PART_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getPartIndex();
+ hash = (37 * hash) + START_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getStartIndex();
+ hash = (37 * hash) + END_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getEndIndex();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment 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.aiplatform.v1.Segment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment 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.aiplatform.v1.Segment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment 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.aiplatform.v1.Segment parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment 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.aiplatform.v1.Segment parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment 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.aiplatform.v1.Segment 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;
+ }
+ /**
+ *
+ *
+ *
+ * Segment of the content.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Segment}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Segment)
+ com.google.cloud.aiplatform.v1.SegmentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Segment_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Segment.class,
+ com.google.cloud.aiplatform.v1.Segment.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.Segment.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ partIndex_ = 0;
+ startIndex_ = 0;
+ endIndex_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Segment_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Segment getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.Segment.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Segment build() {
+ com.google.cloud.aiplatform.v1.Segment result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Segment buildPartial() {
+ com.google.cloud.aiplatform.v1.Segment result =
+ new com.google.cloud.aiplatform.v1.Segment(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.Segment result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.partIndex_ = partIndex_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.startIndex_ = startIndex_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.endIndex_ = endIndex_;
+ }
+ }
+
+ @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);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.Segment) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.Segment) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Segment other) {
+ if (other == com.google.cloud.aiplatform.v1.Segment.getDefaultInstance()) return this;
+ if (other.getPartIndex() != 0) {
+ setPartIndex(other.getPartIndex());
+ }
+ if (other.getStartIndex() != 0) {
+ setStartIndex(other.getStartIndex());
+ }
+ if (other.getEndIndex() != 0) {
+ setEndIndex(other.getEndIndex());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @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();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ partIndex_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16:
+ {
+ startIndex_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24:
+ {
+ endIndex_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ 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
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int partIndex_;
+ /**
+ *
+ *
+ *
+ * Output only. The index of a Part object within its parent Content object.
+ *
+ *
+ * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The partIndex.
+ */
+ @java.lang.Override
+ public int getPartIndex() {
+ return partIndex_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The index of a Part object within its parent Content object.
+ *
+ *
+ * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The partIndex to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPartIndex(int value) {
+
+ partIndex_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The index of a Part object within its parent Content object.
+ *
+ *
+ * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPartIndex() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ partIndex_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int startIndex_;
+ /**
+ *
+ *
+ *
+ * Output only. Start index in the given Part, measured in bytes. Offset from
+ * the start of the Part, inclusive, starting at zero.
+ *
+ *
+ * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The startIndex.
+ */
+ @java.lang.Override
+ public int getStartIndex() {
+ return startIndex_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Start index in the given Part, measured in bytes. Offset from
+ * the start of the Part, inclusive, starting at zero.
+ *
+ *
+ * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The startIndex to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartIndex(int value) {
+
+ startIndex_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Start index in the given Part, measured in bytes. Offset from
+ * the start of the Part, inclusive, starting at zero.
+ *
+ *
+ * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStartIndex() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startIndex_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int endIndex_;
+ /**
+ *
+ *
+ *
+ * Output only. End index in the given Part, measured in bytes. Offset from
+ * the start of the Part, exclusive, starting at zero.
+ *
+ *
+ * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The endIndex.
+ */
+ @java.lang.Override
+ public int getEndIndex() {
+ return endIndex_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. End index in the given Part, measured in bytes. Offset from
+ * the start of the Part, exclusive, starting at zero.
+ *
+ *
+ * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The endIndex to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndIndex(int value) {
+
+ endIndex_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. End index in the given Part, measured in bytes. Offset from
+ * the start of the Part, exclusive, starting at zero.
+ *
+ *
+ * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEndIndex() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ endIndex_ = 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.aiplatform.v1.Segment)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Segment)
+ private static final com.google.cloud.aiplatform.v1.Segment DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Segment();
+ }
+
+ public static com.google.cloud.aiplatform.v1.Segment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Segment parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Segment getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java
new file mode 100644
index 000000000000..4350668c7713
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SegmentOrBuilder.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2024 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/aiplatform/v1/content.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.aiplatform.v1;
+
+public interface SegmentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Segment)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of a Part object within its parent Content object.
+ *
+ *
+ * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The partIndex.
+ */
+ int getPartIndex();
+
+ /**
+ *
+ *
+ *
+ * Output only. Start index in the given Part, measured in bytes. Offset from
+ * the start of the Part, inclusive, starting at zero.
+ *
+ *
+ * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The startIndex.
+ */
+ int getStartIndex();
+
+ /**
+ *
+ *
+ *
+ * Output only. End index in the given Part, measured in bytes. Offset from
+ * the start of the Part, exclusive, starting at zero.
+ *
+ *
+ * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The endIndex.
+ */
+ int getEndIndex();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
index 54ac74bd6841..b99cde719547 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
@@ -27,7 +27,9 @@
*
* A `Tool` is a piece of code that enables the system to interact with
* external systems to perform an action, or set of actions, outside of
- * knowledge and scope of the model.
+ * knowledge and scope of the model. A Tool object should contain exactly
+ * one type of Tool (e.g FunctionDeclaration, Retrieval or
+ * GoogleSearchRetrieval).
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.Tool}
@@ -67,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.Tool.Builder.class);
}
+ private int bitField0_;
public static final int FUNCTION_DECLARATIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -75,14 +78,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -98,14 +101,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -121,14 +124,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -143,14 +146,14 @@ public int getFunctionDeclarationsCount() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -165,14 +168,14 @@ public com.google.cloud.aiplatform.v1.FunctionDeclaration getFunctionDeclaration
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -185,6 +188,131 @@ public com.google.cloud.aiplatform.v1.FunctionDeclaration getFunctionDeclaration
return functionDeclarations_.get(index);
}
+ public static final int RETRIEVAL_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1.Retrieval retrieval_;
+ /**
+ *
+ *
+ *
+ * Optional. Retrieval tool type.
+ * System will always execute the provided retrieval tool(s) to get external
+ * knowledge to answer the prompt. Retrieval results are presented to the
+ * model for generation.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Retrieval retrieval = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the retrieval field is set.
+ */
+ @java.lang.Override
+ public boolean hasRetrieval() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Retrieval tool type.
+ * System will always execute the provided retrieval tool(s) to get external
+ * knowledge to answer the prompt. Retrieval results are presented to the
+ * model for generation.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Retrieval retrieval = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The retrieval.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Retrieval getRetrieval() {
+ return retrieval_ == null
+ ? com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance()
+ : retrieval_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Retrieval tool type.
+ * System will always execute the provided retrieval tool(s) to get external
+ * knowledge to answer the prompt. Retrieval results are presented to the
+ * model for generation.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.Retrieval retrieval = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RetrievalOrBuilder getRetrievalOrBuilder() {
+ return retrieval_ == null
+ ? com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance()
+ : retrieval_;
+ }
+
+ public static final int GOOGLE_SEARCH_RETRIEVAL_FIELD_NUMBER = 3;
+ private com.google.cloud.aiplatform.v1.GoogleSearchRetrieval googleSearchRetrieval_;
+ /**
+ *
+ *
+ *
+ * Optional. GoogleSearchRetrieval tool type.
+ * Specialized retrieval tool that is powered by Google search.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GoogleSearchRetrieval google_search_retrieval = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the googleSearchRetrieval field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleSearchRetrieval() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GoogleSearchRetrieval tool type.
+ * Specialized retrieval tool that is powered by Google search.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GoogleSearchRetrieval google_search_retrieval = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The googleSearchRetrieval.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getGoogleSearchRetrieval() {
+ return googleSearchRetrieval_ == null
+ ? com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance()
+ : googleSearchRetrieval_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. GoogleSearchRetrieval tool type.
+ * Specialized retrieval tool that is powered by Google search.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.GoogleSearchRetrieval google_search_retrieval = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder
+ getGoogleSearchRetrievalOrBuilder() {
+ return googleSearchRetrieval_ == null
+ ? com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance()
+ : googleSearchRetrieval_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -202,6 +330,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < functionDeclarations_.size(); i++) {
output.writeMessage(1, functionDeclarations_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getRetrieval());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getGoogleSearchRetrieval());
+ }
getUnknownFields().writeTo(output);
}
@@ -215,6 +349,13 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, functionDeclarations_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetrieval());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGoogleSearchRetrieval());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -231,6 +372,14 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.aiplatform.v1.Tool other = (com.google.cloud.aiplatform.v1.Tool) obj;
if (!getFunctionDeclarationsList().equals(other.getFunctionDeclarationsList())) return false;
+ if (hasRetrieval() != other.hasRetrieval()) return false;
+ if (hasRetrieval()) {
+ if (!getRetrieval().equals(other.getRetrieval())) return false;
+ }
+ if (hasGoogleSearchRetrieval() != other.hasGoogleSearchRetrieval()) return false;
+ if (hasGoogleSearchRetrieval()) {
+ if (!getGoogleSearchRetrieval().equals(other.getGoogleSearchRetrieval())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -246,6 +395,14 @@ public int hashCode() {
hash = (37 * hash) + FUNCTION_DECLARATIONS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionDeclarationsList().hashCode();
}
+ if (hasRetrieval()) {
+ hash = (37 * hash) + RETRIEVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getRetrieval().hashCode();
+ }
+ if (hasGoogleSearchRetrieval()) {
+ hash = (37 * hash) + GOOGLE_SEARCH_RETRIEVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleSearchRetrieval().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -353,7 +510,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* A `Tool` is a piece of code that enables the system to interact with
* external systems to perform an action, or set of actions, outside of
- * knowledge and scope of the model.
+ * knowledge and scope of the model. A Tool object should contain exactly
+ * one type of Tool (e.g FunctionDeclaration, Retrieval or
+ * GoogleSearchRetrieval).
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.Tool}
@@ -378,10 +537,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.Tool.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFunctionDeclarationsFieldBuilder();
+ getRetrievalFieldBuilder();
+ getGoogleSearchRetrievalFieldBuilder();
+ }
}
@java.lang.Override
@@ -395,6 +565,16 @@ public Builder clear() {
functionDeclarationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
+ retrieval_ = null;
+ if (retrievalBuilder_ != null) {
+ retrievalBuilder_.dispose();
+ retrievalBuilder_ = null;
+ }
+ googleSearchRetrieval_ = null;
+ if (googleSearchRetrievalBuilder_ != null) {
+ googleSearchRetrievalBuilder_.dispose();
+ googleSearchRetrievalBuilder_ = null;
+ }
return this;
}
@@ -443,6 +623,19 @@ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Tool resu
private void buildPartial0(com.google.cloud.aiplatform.v1.Tool result) {
int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.retrieval_ = retrievalBuilder_ == null ? retrieval_ : retrievalBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.googleSearchRetrieval_ =
+ googleSearchRetrievalBuilder_ == null
+ ? googleSearchRetrieval_
+ : googleSearchRetrievalBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -517,6 +710,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool other) {
}
}
}
+ if (other.hasRetrieval()) {
+ mergeRetrieval(other.getRetrieval());
+ }
+ if (other.hasGoogleSearchRetrieval()) {
+ mergeGoogleSearchRetrieval(other.getGoogleSearchRetrieval());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -557,6 +756,19 @@ public Builder mergeFrom(
}
break;
} // case 10
+ case 18:
+ {
+ input.readMessage(getRetrievalFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(
+ getGoogleSearchRetrievalFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -598,14 +810,14 @@ private void ensureFunctionDeclarationsIsMutable() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -624,14 +836,14 @@ private void ensureFunctionDeclarationsIsMutable() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -649,14 +861,14 @@ public int getFunctionDeclarationsCount() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -674,14 +886,14 @@ public com.google.cloud.aiplatform.v1.FunctionDeclaration getFunctionDeclaration
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -706,14 +918,14 @@ public Builder setFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -735,14 +947,14 @@ public Builder setFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -767,14 +979,14 @@ public Builder addFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -799,14 +1011,14 @@ public Builder addFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -828,14 +1040,14 @@ public Builder addFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -857,14 +1069,14 @@ public Builder addFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -886,14 +1098,14 @@ public Builder addAllFunctionDeclarations(
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -914,14 +1126,14 @@ public Builder clearFunctionDeclarations() {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -942,14 +1154,14 @@ public Builder removeFunctionDeclarations(int index) {
*
*
*
- * Optional. One or more function declarations to be passed to the model along
- * with the current user query. Model may decide to call a subset of these
- * functions by populating [FunctionCall][content.part.function_call] in the
- * response. User should provide a
- * [FunctionResponse][content.part.function_response] for each function call
- * in the next turn. Based on the function responses, Model will generate the
- * final response back to the user. Maximum 64 function declarations can be
- * provided.
+ * Optional. Function tool type.
+ * One or more function declarations to be passed to the model along with the
+ * current user query. Model may decide to call a subset of these functions
+ * by populating [FunctionCall][content.part.function_call] in the response.
+ * User should provide a [FunctionResponse][content.part.function_response]
+ * for each function call in the next turn. Based on the function responses,
+ * Model will generate the final response back to the user.
+ * Maximum 64 function declarations can be provided.
*
*
*
@@ -964,14 +1176,14 @@ public Builder removeFunctionDeclarations(int index) {
*
*
*